developit / workerize-loader

🏗️ Automatically move a module into a Web Worker (Webpack loader)
https://npm.im/workerize-loader
2.31k stars 86 forks source link

Add support for imported exports #100

Open kpdecker opened 4 years ago

kpdecker commented 4 years ago

Adds support for

export * from 'module';
export { function } from 'module'

providedExports field appears to be around for all of Webpack 4. If prior webpacks are supported still, then will need a simple adapter layer.

Approached this in additive fashion to reduce the risk of this PR. I do have a stash locally that replaces the custom traversal logic glad to include that in this PR if desired. Mostly deletes the custom parser hooks.

Fixes #15