rollup-plugin-web-worker-loader
Advanced tools
Comparing version 1.6.0 to 1.6.1
{ | ||
"name": "rollup-plugin-web-worker-loader", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "Rollup plugin to handle Web Workers", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -87,3 +87,9 @@ # rollup-plugin-web-worker-loader | ||
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' ] | ||
@@ -90,0 +96,0 @@ }) |
@@ -10,3 +10,3 @@ const options = require('./plugin/options'); | ||
targetPlatform: 'auto', | ||
sourcemap: 'false', | ||
sourcemap: false, | ||
loadPath: '', | ||
@@ -22,2 +22,3 @@ preserveSource: false, | ||
outputFolder: '', | ||
plugins: [], | ||
skipPlugins: [ | ||
@@ -24,0 +25,0 @@ 'liveServer', |
@@ -14,2 +14,3 @@ const path = require('path'); | ||
}); | ||
plugins.push(...config.plugins); | ||
state.options.plugins = plugins; | ||
@@ -16,0 +17,0 @@ |
50062
562
120