File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ class ConfigGenerator {
132
132
const vueVersion = getVueVersion ( this . webpackConfig ) ;
133
133
switch ( vueVersion ) {
134
134
case 2 :
135
+ case '2.7' :
135
136
config . resolve . alias [ 'vue$' ] = 'vue/dist/vue.esm.js' ;
136
137
break ;
137
138
case 3 :
Original file line number Diff line number Diff line change @@ -97,6 +97,15 @@ const features = {
97
97
] ,
98
98
description : 'load Vue files'
99
99
} ,
100
+ 'vue2.7' : {
101
+ method : 'enableVueLoader()' ,
102
+ // vue is needed so the end-user can do things
103
+ packages : [
104
+ { name : 'vue' , version : '^2.7' } ,
105
+ { name : 'vue-loader' , version : '^15.10.0' } ,
106
+ ] ,
107
+ description : 'load Vue files'
108
+ } ,
100
109
vue3 : {
101
110
method : 'enableVueLoader()' ,
102
111
// vue is needed so the end-user can do things
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const logger = require('../logger');
16
16
17
17
/**
18
18
* @param {WebpackConfig } webpackConfig
19
- * @return {int|null }
19
+ * @return {int|string| null }
20
20
*/
21
21
module . exports = function ( webpackConfig ) {
22
22
if ( webpackConfig . vueOptions . version !== null ) {
@@ -30,6 +30,10 @@ module.exports = function(webpackConfig) {
30
30
return 2 ;
31
31
}
32
32
33
+ if ( semver . satisfies ( vueVersion , '^2.7' ) ) {
34
+ return '2.7' ;
35
+ }
36
+
33
37
if ( semver . satisfies ( vueVersion , '^2' ) ) {
34
38
return 2 ;
35
39
}
You can’t perform that action at this time.
0 commit comments