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 33d2ac5 commit 449a0afCopy full SHA for 449a0af
lib/config-generator.js
@@ -103,16 +103,8 @@ class ConfigGenerator {
103
104
if (this.webpackConfig.useVueLoader) {
105
const vueVersion = getVueVersion(this.webpackConfig);
106
- switch (vueVersion) {
107
- case 2:
108
- config.resolve.alias['vue$'] = 'vue/dist/vue.esm.js';
109
- break;
110
- case 3:
111
- // this may not be needed in the stable release
112
- config.resolve.alias['vue'] = 'vue/dist/vue.esm-bundler.js';
113
114
- default:
115
- throw new Error(`Invalid vue version ${vueVersion}`);
+ if (vueVersion === 2) {
+ config.resolve.alias['vue$'] = 'vue/dist/vue.esm.js';
116
}
117
118
0 commit comments