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

sometimes doesnt throw errors because files are checked only if loaded from entrypoint

Open srghma opened this issue 5 years ago • 0 comments
trafficstars

this is not exactly a bug, but

IF I run spago build --watch in some termial - it will show all errors, doesnt matter if module is used or not

BUT with purs-loader

  1. clone this repo https://github.com/srghma/purescript-webpack-example/tree/webpack-spago-loader
  2. run webpack with watch mode
  3. change something in

https://github.com/srghma/purescript-webpack-example/blob/webpack-spago-loader/src/Example/UnusedInUnused.purs

or https://github.com/srghma/purescript-webpack-example/blob/webpack-spago-loader/src/Example/Unused.purs, you can even make it invalid

or add a hole

  1. there will be no recompilation and no error

expected: recompilation and error

srghma avatar Apr 18 '20 19:04 srghma