Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Commit

Permalink
fix rollup external aliasing handling
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 15, 2016
1 parent 5c59fdb commit 91a4271
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rollup.js
Expand Up @@ -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), {
Expand Down

0 comments on commit 91a4271

Please sign in to comment.