You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
modules with errors in them should not keep built file
Actual Behavior
My build runs. Multiple files have typescript errors causing the build to fail. The build succeeds when trying to run it again. When i disable the cache it fails every time.
Is an error being thrown?
there is no error being thrown.
Steps to Reproduce
I can build a repro if necessary. I see issue #365 and the related fix which is very similar. The errors that I'm seeing however are not throwing an exception. I have 2 work arounds currently. One is to automatically clear the cache in shell based on the return code of the webpack build:
Same problem here.
It ignores error thrown from ts-loader or I guess it never run loader again since there is no change thus hit cache.
So it maybe need save the errors/warnings also into cache.
If this plugin is designed for development, then we shouldn't have use it at production build phase.
Expected Behavior
modules with errors in them should not keep built file
Actual Behavior
My build runs. Multiple files have typescript errors causing the build to fail. The build succeeds when trying to run it again. When i disable the cache it fails every time.
Is an error being thrown?
there is no error being thrown.
Steps to Reproduce
I can build a repro if necessary. I see issue #365 and the related fix which is very similar. The errors that I'm seeing however are not throwing an exception. I have 2 work arounds currently. One is to automatically clear the cache in shell based on the return code of the webpack build:
the other is to hook into webpacks stats callback after the build is complete and remove the cache if there are any failures.
It would be more ideal if the hard source plugin did this and removed only cache entries for files which have failed if this is possible.
Operating System, Node, and NPM dependency versions
The text was updated successfully, but these errors were encountered: