Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: pass in compiler to devServer before() #66

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

nolanlawson
Copy link
Contributor

The devServer.before() API accepts three arguments: app, server, and compiler. When overriding this function, though, error-overlay-webpack-plugin only passes in the first two arguments, which can lead to exceptions when other before functions try to access compiler. This fixes that.

The [`devServer.before()`](https://webpack.js.org/configuration/dev-server/#devserverbefore) API accepts three arguments: `app`, `server`, and `compiler`. When overriding this function, though, `error-overlay-webpack-plugin` only passes in the first two arguments, which can lead to exceptions when other `before` functions try to access `compiler`. This fixes that.
@gregberge gregberge merged commit c0feceb into gregberge:master Oct 28, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants