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 baad51a commit cf7ae96Copy full SHA for cf7ae96
lib/loader.js
@@ -167,6 +167,16 @@ module.exports = function (content) {
167
? getRequireForImport('script', script, 0)
168
: getRequire('script', script, 0)
169
)
170
+ // check and warn named exports
171
+ if (!this.minimize) {
172
+ output +=
173
+ 'if (__vue_script__ &&\n' +
174
+ ' __vue_script__.__esModule &&\n' +
175
+ ' Object.keys(__vue_script__).length > 1) {\n' +
176
+ ' console.warn("[vue-loader] ' + path.relative(process.cwd(), filePath) +
177
+ ': named exports in *.vue files are ignored.")' +
178
+ '}\n'
179
+ }
180
}
181
182
// add require for template
0 commit comments