[Feature] Webpack v5 compatibility
See original GitHub issue-
I’d be willing to implement this featureI tried to implement this feature but did not achieve completion; see #83
Describe the user story
webpack
v5.0.0 was released on 2020-10-10 and is likely to see gradual uptake as new projects begin using it and existing projects migrate to it. As a user of webpack
v4 and mochapack
, I’d appreciate the ability to have an upgrade path for my project in order to run tests based on webpack
v5.
Describe the solution you’d like
Upgrades to the mochapack
CLI to support projects using webpack
v5.
Describe the drawbacks of your solution
webpack
v5 introduces a number of breaking changes, and it’s unclear to me whether it would be possible to support both v4 and v5 from an updated mochapack
codebase.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:17
- Comments:8 (4 by maintainers)
Top Results From Across the Web
To v5 from v4 - webpack
Some Plugins and Loaders might have a beta version that has to be used in order to be compatible with webpack 5. Make...
Read more >New features in webpack 5 - LogRocket Blog
Webpack tries to provide compatibility layers when possible although some of the changes make this difficult (especially regarding the injection ...
Read more >Top 5 Changes in webpack v5 - Ryan H. Lewis
Webpack v5 brings a ton of new features, changes, and deprecations. The release article was more than 10,000 words, and I wouldn't expect ......
Read more >Webpack 5 Adoption - Next.js
In Next.js 11 webpack 5 was enabled by default for all applications. You could still opt-out and use webpack 4 to help with...
Read more >What's New in Webpack 5 - Frontend Digest
While the webpack team will continue to support version 4, by fixing bugs and adding features, for the foreseeable future, they suggest that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The support for Webpack 5 has been finished by @sodatea and included into
mochapack@2.1.0
, which has just been published.@sodatea @jayaddison @skjnldsv Thank you so much for your work on the Webpack 5 support, it wasn’t possible without your time and efforts!
As a heads-up to anyone following this issue and keen to see it resolved; it’s being worked on in #83, but progress is slow since I don’t have much expertise in this codebase and - to be fairly honest about it - it is not yet a blocker or high-priority feature for the project I’m working on, so it tends to fall below other priorities.
Hopefully there’ll be a good reason to kickstart further progress soon; in the meantime if anyone’s getting a sense that their own work is unnecessarily delayed or blocked waiting for
webpack
v5 support inmochapack
, your contributions and ideas for how to get this implemented are welcome.