From 4164f6265a2c8caadeeef484453eecdefa41aadc Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 16 Aug 2015 12:02:25 -0400 Subject: [PATCH] use bundle.trace() when building export block --- src/finalisers/shared/getExportBlock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finalisers/shared/getExportBlock.js b/src/finalisers/shared/getExportBlock.js index f97bfef..c789669 100644 --- a/src/finalisers/shared/getExportBlock.js +++ b/src/finalisers/shared/getExportBlock.js @@ -11,7 +11,7 @@ export default function getExportBlock ( bundle, exportMode, mechanism = 'return return bundle.toExport .map( name => { const prop = name === 'default' ? `['default']` : `.${name}`; - name = bundle.entryModule.replacements[ name ] || name; + name = bundle.trace( bundle.entryModule, name ); return `exports${prop} = ${name};`; }) .join( '\n' );