From 40992834fdfdcfd40fa3c96f83490d9e68a4384c Mon Sep 17 00:00:00 2001 From: guybedford Date: Wed, 9 Sep 2015 08:00:36 +0200 Subject: [PATCH] pkg env build simplification --- lib/package.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/package.js b/lib/package.js index 09fb6ac9..2075a55a 100644 --- a/lib/package.js +++ b/lib/package.js @@ -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()