Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,13 @@ webWorkerLoader({
loadPath?: string, // This option is useful when the worker scripts need to be loaded from another folder.
// Default: ''

skipPlugins?: Array // Plugin names to skip for web worker build
plugins?: Array, // An array of extra plugins to use while compiling the worker code. Used to apply
// transformations to the worker code and not the main code (i.e. minify)
// NOTE: these plugins be added to the rollop process on top of the plugins in the
// default configuration.
// Default: []

skipPlugins?: Array, // Plugin names to skip for web worker build
// Default: [ 'liveServer', 'serve', 'livereload' ]
})
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-web-worker-loader",
"version": "1.7.0",
"version": "1.7.1",
"description": "Rollup plugin to handle Web Workers",
"main": "src/index.js",
"repository": "https://github.com/darionco/rollup-plugin-web-worker-loader",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const defaultConfig = {
external: undefined,
extensions: [ '.js' ],
outputFolder: '',
plugins: [],
skipPlugins: [
'liveServer',
'serve',
Expand Down
1 change: 1 addition & 0 deletions src/plugin/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function optionsImp(state, config, options) {
}
plugins.push(plugin);
});
plugins.push(...config.plugins);
state.options.plugins = plugins;

const cwd = process.cwd();
Expand Down