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

Multiple functions inside a worker not supported? #110

Closed LifeIsStrange closed 2 years ago

LifeIsStrange commented 2 years ago

Web Workers support defining multiple function inside a script, as can be done quickly in this online demo: https://embed.plnkr.co/EuwPmRBITs71IiXeVR2f/

However when using this bundler, it seems to not work (Vue project, Webpack 4)

LifeIsStrange commented 2 years ago

@developit friendly ping :)

LifeIsStrange commented 2 years ago

my bad seems to work