20 lines
362 B
JavaScript
20 lines
362 B
JavaScript
|
module.exports = {
|
||
|
chainWebpack: config => {
|
||
|
config.resolve.alias.set('vue', '@vue/compat');
|
||
|
|
||
|
config.module
|
||
|
.rule('vue')
|
||
|
.use('vue-loader')
|
||
|
.tap(options => {
|
||
|
return {
|
||
|
...options,
|
||
|
compilerOptions: {
|
||
|
compatConfig: {
|
||
|
MODE: 2,
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
});
|
||
|
},
|
||
|
};
|