Skip to content

Commit 851d8a1

Browse files
committed
fix(plugin-vue): initialize compiler correctly
1 parent 378aea3 commit 851d8a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/plugin-vue/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin<Api> {
265265
},
266266

267267
configResolved(config) {
268+
const { compiler, ...rest } = options.value
268269
options.value = {
269-
...options.value,
270+
compiler: compiler ?? resolveCompiler(options.value.root),
271+
...rest,
270272
root: config.root,
271273
sourceMap: config.command === 'build' ? !!config.build.sourcemap : true,
272274
cssDevSourcemap: config.css?.devSourcemap ?? false,

0 commit comments

Comments
 (0)