pkg env build simplification

This commit is contained in:
guybedford 2015-09-09 08:00:36 +02:00
parent f52698f9aa
commit 40992834fd

View File

@ -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()