GoogleChromeLabs / worker-plugin

👩‍🏭 Adds native Web Worker bundling support to Webpack.
https://npm.im/worker-plugin
Apache License 2.0
1.91k stars 79 forks source link

Add additional require path for Webpack 5 #78

Closed dkozma closed 4 years ago

dkozma commented 4 years ago

Webpack 5 changed the location of their ParserHelpers, once in https://github.com/webpack/webpack/pull/7640 and then in https://github.com/webpack/webpack/pull/9804. This should resolve so it is also compatible to the new path (as of 5.0.0-beta.16) and resolve #68.

Please note that I didn't test the rest of the logic with Webpack 5, only updated the location to ParserHelpers.

developit commented 4 years ago

Great! I need to add infrastructure to allow testing on both webpack versions.