Skip to content

Commit

Permalink
fix(plugin-vue): allow overwrite esbuild config (#444)
Browse files Browse the repository at this point in the history
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
  • Loading branch information
alamhubb and sxzz authored Sep 16, 2024
1 parent 6ea0ec5 commit 1344294
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/plugin-vue/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,11 @@ export async function transformMain(
resolvedCode,
filename,
{
loader: 'ts',
target: 'esnext',
// #430 support decorators in .vue file
// target can be overridden by esbuild config target
...options.devServer?.config.esbuild,
loader: 'ts',
sourcemap: options.sourceMap,
},
resolvedMap,
Expand Down

0 comments on commit 1344294

Please sign in to comment.