Skip to content

Commit 0433c75

Browse files
matt-oconnellyyx990803
authored andcommitted
Do not consider private properties to be named exports (fix: vuejs/vue-loader#759) (#765)
1 parent 4c7d895 commit 0433c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ module.exports = function (content) {
466466
// check named exports
467467
output +=
468468
'if (Component.esModule && Object.keys(Component.esModule).some(function (key) {' +
469-
'return key !== "default" && key !== "__esModule"' +
469+
'return key !== "default" && key.substr(0, 2) !== "__"' +
470470
'})) {' +
471471
'console.error("named exports are not supported in *.vue files.")' +
472472
'}\n'

0 commit comments

Comments
 (0)