Skip to content

Commit 1344294

Browse files
alamhubbsxzz
andauthoredSep 16, 2024
fix(plugin-vue): allow overwrite esbuild config (#444)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
1 parent 6ea0ec5 commit 1344294

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎packages/plugin-vue/src/main.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,11 @@ export async function transformMain(
249249
resolvedCode,
250250
filename,
251251
{
252-
loader: 'ts',
253252
target: 'esnext',
253+
// #430 support decorators in .vue file
254+
// target can be overridden by esbuild config target
255+
...options.devServer?.config.esbuild,
256+
loader: 'ts',
254257
sourcemap: options.sourceMap,
255258
},
256259
resolvedMap,

0 commit comments

Comments
 (0)