From 69a8570d580ae70cad8c6bba2a7b5d81c478afd9 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 4 Oct 2015 12:42:34 -0400 Subject: [PATCH] fix default exports --- 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 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