From 91a4271a63ce82ebafef05bd8594e5f43f0f9b33 Mon Sep 17 00:00:00 2001 From: guybedford Date: Wed, 15 Jun 2016 12:30:44 +0200 Subject: [PATCH] fix rollup external aliasing handling --- lib/rollup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rollup.js b/lib/rollup.js index c9115cf..b38e2a3 100644 --- a/lib/rollup.js +++ b/lib/rollup.js @@ -295,10 +295,10 @@ exports.rollupTree = function(loader, tree, entryPoints, traceOpts, compileOpts) var curInlined = inlineMap[entryPoint] || []; // the process of running rollup will itself normalize all dependencies - // the depMap then just becomes the identity map + // the depMap then just becomes the identity map for non-externals var inlinedDepMap = {}; - aliasedExternals.forEach(function(dep) { - inlinedDepMap[dep] = dep; + aliasedExternals.forEach(function(dep, index) { + inlinedDepMap[dep] = externals[index]; }); rolledUpTree[entryPoint] = extend(extend({}, entryPointLoad), {