Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Problems with NoErrorsPlugin #122

Open
gaearon opened this issue Mar 6, 2016 · 2 comments
Open

Problems with NoErrorsPlugin #122

gaearon opened this issue Mar 6, 2016 · 2 comments

Comments

@gaearon
Copy link
Owner

gaearon commented Mar 6, 2016

What’s bad about it:

What’s good about it:

  • With it, if you make a syntax error and then fix it, hot updates still work. If you remove it and make a syntax error in a file that is not imported by index.js (e.g. colors.js or any nested component in a larger app), hot updates will just break.

What can we do:

  • Long term: We can teach Webpack to skip broken updates (Hot updates should ignore broken builds webpack/webpack#2117). However even if it happens it’ll likely happen in Webpack 2 which is not currently compatible with webpack-hot-middleware.
  • Short term: We can probably teach webpack-hot-middleware to work better with NoErrorsPlugin—namely, to display the syntax overlay immediately if there is a syntax error in the current bundle.

cc @glenjamin who might provide more perspective

@glenjamin
Copy link

Short term: We can probably teach webpack-hot-middleware to work better with NoErrorsPlugin—namely, to display the syntax overlay immediately if there is a syntax error in the current bundle.

See webpack-contrib/webpack-hot-middleware#76

It creates problems for ESLint loader in #19 (does it? maybe changing config to emit warnings is enough per webpack-contrib/eslint-loader#23 (comment) ?)

This one seems like a red herring to me. If you're using eslint while building the bundle and it has errors, then you don't get a bundle - that sounds correct to me.

@gaearon
Copy link
Owner Author

gaearon commented Jul 4, 2016

Something is happening here: webpack/webpack#2117 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@glenjamin @gaearon and others