We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b526349 commit 7459a87Copy full SHA for 7459a87
lib/loader.js
@@ -380,8 +380,11 @@ module.exports = function (content) {
380
381
output +=
382
'var customBlock = ' + requireString + '\n' +
383
- 'if (typeof customBlock === "function") {' +
384
- ' customBlock(Component)' +
+ 'if (customBlock && customBlock.__esModule) {\n' +
+ ' customBlock = customBlock.default\n' +
385
+ '}\n' +
386
+ 'if (typeof customBlock === "function") {\n' +
387
+ ' customBlock(Component)\n' +
388
'}\n'
389
}
390
})
0 commit comments