Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

webpack v5 compatibility #2641

Merged
merged 20 commits into from
Oct 12, 2020
Merged

webpack v5 compatibility #2641

merged 20 commits into from
Oct 12, 2020

Conversation

jeffposnick
Copy link
Contributor

R: @philipwalton @housseindjirdeh (who might have some more webpack background)

Fixes #2630

There are unfortunately a lot of changes; they basically follow the guidance I received from the webpack team at webpack/webpack#11425

The codebase should work with webpack v4.40.0 or higher or webpack v5.0.0, so that's a breaking change (we previously worked with webpack v4.0.0 or higher).

There are now two different sets of tests, each going against a different major version of webpack. (Thanks to @developit for help getting the proper node module resolution set up.)

One major outstanding issue is compatibility with the latest html-webpack-plugin (see jantimon/html-webpack-plugin#1522); I believe they still need to do some work to properly support webpack v5.0.0, and in the meantime, I would consider using our plugin alongside it unsupported. I did not want that to block getting this new code out there for the Workbox v6 prereleases, though.

Copy link
Member

@philipwalton philipwalton left a comment

Choose a reason for hiding this comment

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

LGTM (though not being super familiar with webpack, I can't really provide much feedback on the implementation).

@jeffposnick
Copy link
Contributor Author

I added the comment to the test and updated the devDependency to the webpack v5.0.0 release.

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

Successfully merging this pull request may close these issues.

webpack v5 compatibility
2 participants