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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy