purs-loader icon indicating copy to clipboard operation
purs-loader copied to clipboard

Reloading only works when Main module is updated

Open nineonine opened this issue 4 years ago • 0 comments

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'
            }
          }
        ]
      }

nineonine avatar Jul 10 '20 00:07 nineonine