Skip to content

Commit a255926

Browse files
committed
remove unnecessary named exports check
1 parent 8c4550f commit a255926

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/loader.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,6 @@ module.exports = function (content) {
362362
// add filename in dev
363363
output +=
364364
'Component.options.__file = ' + JSON.stringify(shortFilePath) + '\n'
365-
// check named exports
366-
output +=
367-
'if (Component.esModule && Object.keys(Component.esModule).some(function (key) {' +
368-
' return key !== "default" && key.substr(0, 2) !== "__"' +
369-
'})) {' +
370-
' console.error("named exports are not supported in *.vue files.")' +
371-
'}\n'
372365
}
373366

374367
// add requires for customBlocks

0 commit comments

Comments
 (0)