Skip to content

Commit 85b46d7

Browse files
committed
Allow private properties in named exports (fix: vuejs#759)
1 parent e7df13d commit 85b46d7

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
@@ -389,7 +389,7 @@ module.exports = function (content) {
389389
// check named exports
390390
output +=
391391
'if (Component.esModule && Object.keys(Component.esModule).some(function (key) {' +
392-
'return key !== "default" && key !== "__esModule"' +
392+
'return key !== "default" && key.substr(0, 2) !== "__"' +
393393
'})) {' +
394394
'console.error("named exports are not supported in *.vue files.")' +
395395
'}\n'

0 commit comments

Comments
 (0)