GoogleChromeLabs / worker-plugin

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

Add plugins option #17

Closed 3846masa closed 5 years ago

3846masa commented 5 years ago

Implemented #16

[
  new WorkerPlugin({
    plugins: [new SomePluginInWorker()],
  }),
]
// Or
[
  new SomePluginInWorkerAndBrowser(),
  new WorkerPlugin({
    plugins: ['SomePluginInWorkerAndBrowser'],
  }),
]