elm-webpack-loader icon indicating copy to clipboard operation
elm-webpack-loader copied to clipboard

8.0.0 compiles all the Elm files on a single file change

Open DawidJanczak opened this issue 3 years ago • 4 comments

Hello!

We just upgraded to 8.0.0 and it looks like saving a single file causes all files to recompile. Furthermore sometimes that happens twice for some reason. Wonder if anyone else ran into this?

DawidJanczak avatar Sep 27 '21 09:09 DawidJanczak

I am seeing the same after upgrading. Did you find any solution @DawidJanczak ?

johanneskvamme avatar Dec 21 '21 10:12 johanneskvamme

@FluidSense this turned out to be the same issue we had a while back: https://github.com/elm-community/elm-webpack-loader/issues/123 The fix for that also works here, but the line number changed: commenting out https://github.com/elm-community/elm-webpack-loader/blob/master/index.js#L110 fixes this for us.

DawidJanczak avatar Dec 22 '21 02:12 DawidJanczak

Thanks for the update! Sadly, that did not resolve the issue for me, but thanks anyway!

johanneskvamme avatar Dec 22 '21 10:12 johanneskvamme

That's interesting! I wonder what the difference is (and why more people don't run into this). Try commenting some more code around that if block, see if anything sticks and let us know when it does :)

DawidJanczak avatar Dec 22 '21 15:12 DawidJanczak