rollup-plugin-web-worker-loader
Advanced tools
Comparing version 1.4.1 to 1.5.0
{ | ||
"name": "rollup-plugin-web-worker-loader", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "Rollup plugin to handle Web Workers", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -64,2 +64,5 @@ # rollup-plugin-web-worker-loader | ||
external?: string[], // *EXPERIMENTAL* override rollup resolution of external module IDs | ||
// useful to inline external dependencies in a worker blob. Default: undefined | ||
preserveSource?: boolean, // When inlined and this option is enabled, the full source code is included in the | ||
@@ -66,0 +69,0 @@ // built file, otherwise it's embedded as a base64 string. Default: false |
@@ -17,2 +17,3 @@ const options = require('./plugin/options'); | ||
forceInline: false, | ||
external: undefined, | ||
extensions: [ '.js' ], | ||
@@ -19,0 +20,0 @@ outputFolder: '', |
@@ -78,2 +78,5 @@ const fs = require('fs'); | ||
state.exclude.add(target); | ||
if (config.external) { | ||
inputOptions.external = config.external; | ||
} | ||
rollup.rollup(inputOptions).then(bundle => { | ||
@@ -80,0 +83,0 @@ state.exclude.delete(id); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47458
531
105