Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9c4ff9

Browse files
committed
fix: allow overwrite esbuild config
ref:vitejs/vite-plugin-vue@1344294
1 parent64f2256 commitf9c4ff9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/core/main.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,11 @@ export async function transformMain(
251251
resolvedCode,
252252
filename,
253253
{
254-
loader:'ts',
255254
target:pluginContext.framework==='vite' ?'esnext' :undefined,
255+
// #430 support decorators in .vue file
256+
// target can be overridden by esbuild config target
257+
...options.devServer?.config.esbuild,
258+
loader:'ts',
256259
sourcemap:options.sourceMap,
257260
},
258261
resolvedMap,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp