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

Problems with NoErrorsPlugin  #122

@gaearon

Description

@gaearon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions