From f8abda474bfa40f0be679981f504b6c0ee14523e Mon Sep 17 00:00:00 2001 From: guybedford Date: Wed, 30 Mar 2016 12:33:55 +0200 Subject: [PATCH] fix conditional tracing deps --- lib/builder.js | 2 +- lib/trace.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/builder.js b/lib/builder.js index 8961fde..3cfd1e2 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -644,7 +644,7 @@ Builder.prototype.buildStatic = function(expressionOrTree, outFile, opts) { // attempt rollup optimizations of ESM entry points return rollupTree(self.loader, inlinedTree, [], traceOpts, compileOpts) .then(function(rolledUp) { - inlineMap = rolledUp.inlineMap + inlineMap = rolledUp.inlineMap; // we rolled up parts of the tree if (rolledUp.tree) diff --git a/lib/trace.js b/lib/trace.js index d062e64..d2a4e42 100644 --- a/lib/trace.js +++ b/lib/trace.js @@ -194,7 +194,7 @@ Trace.prototype.getLoadRecord = function(canonical, excludeURLs, parentStack) { function toPackagePath(subPath) { if (isPlain(subPath)) { // plain name -> apply global map - return loader.pluginLoader.normalize(subPath, normalizedPkgName + '/'); + return loader.normalize(subPath, normalizedPkgName + '/'); } else if (subPath == '.') { return Promise.resolve(normalizedPkgName);