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 Nov 7, 2022
1 parent 6451668 commit 4a2d813
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 @@ -59,6 +59,7 @@ const esbuildTransformer: IJSTransformer = async function () {
format: this.config.format,
define: this.config.define,
platform: this.config.platform,
charset: 'utf8',
target:
this.config.platform === IFatherPlatformTypes.NODE ? 'node14' : 'es6',
// esbuild need relative entry path
Expand Down

0 comments on commit 4a2d813

Please sign in to comment.