File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,18 @@ module.exports = api => {
1212
1313 // when target === 'node', vue-loader will attempt to generate
1414 // SSR-optimized code. We need to turn that off here.
15- // the `optimizeSSR` option is only available in vue-loader 15
16- if ( ! isVue3 ) {
17- webpackConfig . module
15+ webpackConfig . module
1816 . rule ( 'vue' )
1917 . use ( 'vue-loader' )
2018 . tap ( options => {
21- options . optimizeSSR = false
19+ if ( isVue3 ) {
20+ options . isServerBuild = false
21+ } else {
22+ options . optimizeSSR = false
23+ }
24+
2225 return options
2326 } )
24- }
2527 }
2628 } )
2729
Original file line number Diff line number Diff line change 8080 "webpack-merge" : " ^4.2.2"
8181 },
8282 "optionalDependencies" : {
83- "vue-loader-v16" : " npm:vue-loader@^16.0.0-beta.7 "
83+ "vue-loader-v16" : " npm:vue-loader@^16.1.0 "
8484 },
8585 "peerDependencies" : {
8686 "@vue/compiler-sfc" : " ^3.0.0-beta.14" ,
You can’t perform that action at this time.
0 commit comments