diff --git a/src/finalisers/shared/getExportBlock.js b/src/finalisers/shared/getExportBlock.js index d5f7740..891fb0a 100644 --- a/src/finalisers/shared/getExportBlock.js +++ b/src/finalisers/shared/getExportBlock.js @@ -1,6 +1,6 @@ export default function getExportBlock ( bundle, exportMode, mechanism = 'return' ) { if ( exportMode === 'default' ) { - return `${mechanism} ${bundle.entryModule.defaultName()};`; + return `${mechanism} ${bundle.entryModule.declarations.default.render( false )};`; } return bundle.toExport