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

Webpack 5 support #68

Closed lanceschi closed 4 years ago

lanceschi commented 4 years ago

Hi,

any plan for supporting the upcoming webpack 5?

I had a quick try and I istantly hit a wall at this point which should be updated to:

import ParserHelpers from 'webpack/lib/javascript/JavascriptParserHelpers';

Thanks :100: for the awesome lib!

developit commented 4 years ago

This is on my list for sure. I believe the parser helpers in use here are still available, the import path just changed. The short-term solution is to just use try/catch around two require() statements.