Skip to content

Commit

Permalink
refactor: use utf-8 for esbuild transformer (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Dec 7, 2022
1 parent 3dbe137 commit f3cd84e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/builder/bundless/loaders/javascript/esbuild.ts
Expand Up @@ -61,6 +61,7 @@ const esbuildTransformer: IJSTransformer = async function () {
define: this.config.define,
platform: this.config.platform,
target: getBundlessTargets(this.config),
charset: 'utf8',
// esbuild need relative entry path
entryPoints: [path.relative(this.paths.cwd, this.paths.fileAbsPath)],
absWorkingDir: this.paths.cwd,
Expand Down

0 comments on commit f3cd84e

Please sign in to comment.