purs-loader
purs-loader copied to clipboard
sometimes doesnt throw errors because files are checked only if loaded from entrypoint
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
- clone this repo https://github.com/srghma/purescript-webpack-example/tree/webpack-spago-loader
- run webpack with watch mode
- 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
- there will be no recompilation and no error
expected: recompilation and error