@surma/rollup-plugin-off-main-thread
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "@surma/rollup-plugin-off-main-thread", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Use Rollup with workers and ES6 modules today.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,7 +17,9 @@ /** | ||
const url = URL.createObjectURL(blob); | ||
let supportsModuleWorker = | ||
"type" in | ||
new Worker(url, { | ||
type: "module" | ||
}); | ||
let supportsModuleWorker = false; | ||
const options = { | ||
get type() { | ||
supportsModuleWorker = true; | ||
} | ||
}; | ||
new Worker(url, options).terminate(); | ||
URL.revokeObjectURL(url); | ||
@@ -24,0 +26,0 @@ |
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
77601
1264