File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,18 @@ module.exports = api => {
12
12
13
13
// when target === 'node', vue-loader will attempt to generate
14
14
// 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
18
16
. rule ( 'vue' )
19
17
. use ( 'vue-loader' )
20
18
. tap ( options => {
21
- options . optimizeSSR = false
19
+ if ( isVue3 ) {
20
+ options . isServerBuild = false
21
+ } else {
22
+ options . optimizeSSR = false
23
+ }
24
+
22
25
return options
23
26
} )
24
- }
25
27
}
26
28
} )
27
29
Original file line number Diff line number Diff line change 72
72
"thread-loader" : " ^3.0.0" ,
73
73
"url-loader" : " ^4.1.1" ,
74
74
"vue-loader" : " ^15.9.2" ,
75
- "vue-loader-v16" : " npm:vue-loader@^16.0.0-beta.7 " ,
75
+ "vue-loader-v16" : " npm:vue-loader@^16.1.0 " ,
76
76
"vue-style-loader" : " ^4.1.2" ,
77
77
"webpack" : " ^4.0.0" ,
78
78
"webpack-bundle-analyzer" : " ^3.8.0" ,
You can’t perform that action at this time.
0 commit comments