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

Crashes when using ECMAScript modules #38

Closed ghost closed 4 years ago

ghost commented 5 years ago

developit commented 5 years ago

Happy to accept a PR for this, otherwise it will be a bit before I get to it. Since this is triggered by a parser hook, it should be relatively easy to fork the logic based on parsing mode (javascript/esm).

developit commented 4 years ago

Hiya! I finally managed to get this working (took me almost 8 hours 😬). It'll be in a 4.0.0 release shortly.