Skip to content

Commit 449a0af

Browse files
committed
removing vue3 alias
1 parent 33d2ac5 commit 449a0af

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/config-generator.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,8 @@ class ConfigGenerator {
103103

104104
if (this.webpackConfig.useVueLoader) {
105105
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-
break;
114-
default:
115-
throw new Error(`Invalid vue version ${vueVersion}`);
106+
if (vueVersion === 2) {
107+
config.resolve.alias['vue$'] = 'vue/dist/vue.esm.js';
116108
}
117109
}
118110

0 commit comments

Comments
 (0)