mirror of
https://github.com/systemjs/systemjs.git
synced 2026-01-25 14:57:38 +00:00
pkg env build simplification
This commit is contained in:
parent
f52698f9aa
commit
40992834fd
@ -220,10 +220,10 @@
|
||||
return toPackagePath(pkgName, pkg, basePath, normalized.substr(pkgName.length + 1));
|
||||
|
||||
// environment map build support
|
||||
// -> we return [package-name]#[conditional-map] ("jquery#:./index.js" in example above)
|
||||
// -> we return [package-name]#[conditional-map] ("jquery#:index.js" in example above)
|
||||
// to indicate this unique conditional branch to builder in all of its possibilities
|
||||
if (loader.builder)
|
||||
return pkgName + '#:' + map;
|
||||
return pkgName + '#:' + map.substr(2);
|
||||
|
||||
// environment map
|
||||
return Promise.resolve()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user