Skip to content

Commit 5f6affe

Browse files
authored
fix(plugin-vue): when the resource path contains chinese characters, dev/build is inconsistent (#550)
1 parent 8002511 commit 5f6affe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/plugin-vue/src/main.ts

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export async function transformMain(
261261
filename,
262262
{
263263
target: 'esnext',
264+
charset: 'utf8',
264265
// #430 support decorators in .vue file
265266
// target can be overridden by esbuild config target
266267
...options.devServer?.config.esbuild,

0 commit comments

Comments
 (0)