Commit b289b2d 1 parent 56d84fb commit b289b2d Copy full SHA for b289b2d
File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
97
97
reactivityTransform,
98
98
root : process . cwd ( ) ,
99
99
sourceMap : true ,
100
- compiler : null as any // to be set in configResolved
100
+ compiler : null as any // to be set in buildStart
101
101
}
102
102
103
103
// Temporal handling for 2.7 breaking change
@@ -135,15 +135,18 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
135
135
...options ,
136
136
root : config . root ,
137
137
sourceMap : config . command === 'build' ? ! ! config . build . sourcemap : true ,
138
- isProduction : config . isProduction ,
139
- compiler : options . compiler || resolveCompiler ( config . root )
138
+ isProduction : config . isProduction
140
139
}
141
140
} ,
142
141
143
142
configureServer ( server ) {
144
143
options . devServer = server
145
144
} ,
146
145
146
+ buildStart ( ) {
147
+ options . compiler = options . compiler || resolveCompiler ( options . root )
148
+ } ,
149
+
147
150
async resolveId ( id ) {
148
151
// component export helper
149
152
if ( id === EXPORT_HELPER_ID ) {
You can’t perform that action at this time.
0 commit comments