Skip to content

Commit 48a187e

Browse files
committed
fix: when the resource path contains chinese characters, dev/build is inconsistent
ref vitejs/vite-plugin-vue@5f6affe
1 parent 676bef1 commit 48a187e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ export async function transformMain(
258258
filename,
259259
{
260260
target: pluginContext.framework === 'vite' ? 'esnext' : undefined,
261+
charset: 'utf8',
261262
// #430 support decorators in .vue file
262263
// target can be overridden by esbuild config target
263264
...options.devServer?.config.esbuild,

0 commit comments

Comments
 (0)