8000
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 4917d73 commit 1a9b048Copy full SHA for 1a9b048
lib/loader.js
@@ -216,9 +216,7 @@ module.exports = function (content) {
216
// check and warn named exports
217
if (!this.minimize) {
218
output +=
219
- 'if (__vue_script__ &&\n' +
220
- ' __vue_script__.__esModule &a 553C mp;&\n' +
221
- ' Object.keys(__vue_script__).length > 1) {\n' +
+ 'if (Object.keys(__vue_script__).some(function (key) { return key !== "default" && key !== "__esModule" })) {\n' +
222
' console.warn(' + JSON.stringify(
223
'[vue-loader] ' + path.relative(process.cwd(), filePath) +
224
': named exports in *.vue files are ignored.'
0 commit comments