Skip to content

Commit

Permalink
fix(esbuild): respect esbuild config on build (#5538)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored Nov 3, 2021
1 parent 4d3bfae commit ff05fe9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/plugins/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ export const buildEsbuildPlugin = (config: ResolvedConfig): Plugin => {
}

const res = await transformWithEsbuild(code, chunk.fileName, {
...config.esbuild,
target: target || undefined,
...(minify
? {
Expand Down

0 comments on commit ff05fe9

Please sign in to comment.