fix regression in loading workers in packed mode
This commit is contained in:
parent
6682c18ab3
commit
084dd4c132
1 changed files with 4 additions and 0 deletions
|
|
@ -81,6 +81,10 @@ exports.moduleUrl = function(name, component) {
|
|||
// todo make this configurable or get rid of '-'
|
||||
var sep = component == "snippets" ? "/" : "-";
|
||||
var base = parts[parts.length - 1];
|
||||
if (component == "worker" && sep == "-") {
|
||||
var re = new RegExp("^" + component + "[\\-_]|[\\-_]" + component + "$", "g");
|
||||
base = base.replace(re, "");
|
||||
}
|
||||
|
||||
if ((!base || base == component) && parts.length > 1)
|
||||
base = parts[parts.length - 2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue