Skip to content

Add support changes Webpack 5 compiler API #51

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

Merged
merged 4 commits into from
Jan 1, 2021

Conversation

igk1972
Copy link
Contributor

@igk1972 igk1972 commented Dec 29, 2020

Fix issue #47 (Webpack 5 Deprecation: Compilation.assets will be frozen in future)

@markshapiro markshapiro merged commit 1ea55ec into markshapiro:master Jan 1, 2021
@igk1972 igk1972 deleted the igk1972-webpack5-compatible branch January 1, 2021 22:44
if (webpackMajorVersion < 5) {
compiler.hooks.emit.tapAsync(plugin, this.run.bind(this));
} else {
compiler.hooks.compilation.tap(plugin, this.run.bind(this));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be thisCompilation instead of compilation I guess, see FormidableLabs/webpack-stats-plugin#52 (comment)

Copy link
Contributor Author

@igk1972 igk1972 Jan 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kelunik changed & published, thanks

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

# 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.

3 participants