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

Adapt to Webpack 5 #114

Merged
merged 1 commit into from
May 23, 2022
Merged

Conversation

kenrick95
Copy link
Contributor

@kenrick95 kenrick95 commented Jan 13, 2021

Attempt to support Webpack 5

Fixes #77

I'm aware of #101 but when I use it on my application, it produces some runtime error that I couldn't understand


Note that this still emits a deprecating warning ("Compilation.cache was removed in favor of Compilation.getCache()") due to usage of compilation.cache, but I'm not too sure how to use Compilation.getCache since it is lacking documentation (webpack/webpack.js.org#3843)


P.S. The tests aren't migrated to webpack 5 yet since karmatic haven't had support for it yet (karma-webpack has it but still in alpha stage)

@kenrick95 kenrick95 force-pushed the kenrick/webpack-5 branch 3 times, most recently from 7fde4cc to d439b8a Compare January 13, 2021 04:00
@dcosta-ptc
Copy link

Is this project dead? This Pull Request would be a great addition if this project is intended to be alive :)

@s1davide
Copy link

It must be because webpack 5 supports this feature.
https://webpack.js.org/guides/web-workers/

@naoak naoak mentioned this pull request Nov 12, 2021
@developit developit merged commit 3f93c86 into developit:master May 23, 2022
@developit
Copy link
Owner

My apologies, I use Webpack so rarely these days and the API has changed so much that it's been difficult to keep up with merging things. This fix was released as 2.0.1.

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 5 support
4 participants