webworkify
Advanced tools
Comparing version 1.3.0 to 1.4.0
16
index.js
@@ -49,4 +49,18 @@ var bundleFn = arguments[3]; | ||
var workerSources = {}; | ||
resolveSources(skey); | ||
function resolveSources(key) { | ||
workerSources[key] = true; | ||
for (var depPath in sources[key][1]) { | ||
var depKey = sources[key][1][depPath]; | ||
if (!workerSources[depKey]) { | ||
resolveSources(depKey); | ||
} | ||
} | ||
} | ||
var src = '(' + bundleFn + ')({' | ||
+ Object.keys(sources).map(function (key) { | ||
+ Object.keys(workerSources).map(function (key) { | ||
return stringify(key) + ':[' | ||
@@ -53,0 +67,0 @@ + sources[key][0] |
{ | ||
"name": "webworkify", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "launch a web worker that can require() in the browser with browserify", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
8534
120