Browse Source

use bundle.trace() when building export block

contingency-plan
Rich-Harris 10 years ago
parent
commit
4164f6265a
  1. 2
      src/finalisers/shared/getExportBlock.js

2
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' );

Loading…
Cancel
Save