Skip to content

Reloading only works when Main module is updated #150

@nineonine

Description

@nineonine

For some reason reloading only works if I change Main.purs. Having this project structure

src/
+
|
+-----+Main.purs
|
+-----+Deps/
      |
      +-----+Module1.purs
      |
      +-----+Module2.purs

recompilation/reloading is not being triggered when I change Deps.Module1.purs or Deps.Module2.purs, but everything works fine when I change Main.purs

my options:

{
        test: /\.purs$/,
        use: [
          {
            loader: 'purs-loader',
            options: {
              src: [
                "src/**/*.purs"
              ],
              spago: true,
              watch: isWebpackDevServer || isWatch,
              pscIde: false,
              output: 'output',
              bundle: true,
              bundleOutput: 'dist/bundle.js'
            }
          }
        ]
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions