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 {
132132 const vueVersion = getVueVersion ( this . webpackConfig ) ;
133133 switch ( vueVersion ) {
134134 case 2 :
135+ case '2.7' :
135136 config . resolve . alias [ 'vue$' ] = 'vue/dist/vue.esm.js' ;
136137 break ;
137138 case 3 :
Original file line number Diff line number Diff line change @@ -97,6 +97,15 @@ const features = {
9797 ] ,
9898 description : 'load Vue files'
9999 } ,
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+ } ,
100109 vue3 : {
101110 method : 'enableVueLoader()' ,
102111 // 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');
1616
1717/**
1818 * @param {WebpackConfig } webpackConfig
19- * @return {int|null }
19+ * @return {int|string| null }
2020 */
2121module . exports = function ( webpackConfig ) {
2222 if ( webpackConfig . vueOptions . version !== null ) {
@@ -30,6 +30,10 @@ module.exports = function(webpackConfig) {
3030 return 2 ;
3131 }
3232
33+ if ( semver . satisfies ( vueVersion , '^2.7' ) ) {
34+ return '2.7' ;
35+ }
36+
3337 if ( semver . satisfies ( vueVersion , '^2' ) ) {
3438 return 2 ;
3539 }
You can’t perform that action at this time.
0 commit comments