|
@ -11,10 +11,7 @@ export default function getExportBlock ( bundle, exportMode, mechanism = 'return |
|
|
return bundle.toExport |
|
|
return bundle.toExport |
|
|
.map( name => { |
|
|
.map( name => { |
|
|
const prop = name === 'default' ? `['default']` : `.${name}`; |
|
|
const prop = name === 'default' ? `['default']` : `.${name}`; |
|
|
const reexport = bundle.entryModule.reexports[ name ]; |
|
|
name = bundle.traceExport( bundle.entryModule, name ); |
|
|
name = reexport ? |
|
|
|
|
|
bundle.traceExport( bundle.entryModule, name ) : |
|
|
|
|
|
bundle.trace( bundle.entryModule, name ); |
|
|
|
|
|
return `exports${prop} = ${name};`; |
|
|
return `exports${prop} = ${name};`; |
|
|
}) |
|
|
}) |
|
|
.join( '\n' ); |
|
|
.join( '\n' ); |
|
|