Skip to content

Commit

Permalink
fix(esbuild): transpile with esnext in dev (#10215)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 23, 2022
1 parent dfa22ca commit 4a0f210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/src/node/plugins/esbuild.ts
Expand Up @@ -179,6 +179,7 @@ export function esbuildPlugin(options: ESBuildOptions = {}): Plugin {
// Remove optimization options for dev as we only need to transpile them,
// and for build as the final optimization is in `buildEsbuildPlugin`
const transformOptions: TransformOptions = {
target: 'esnext',
...options,
minify: false,
minifyIdentifiers: false,
Expand Down

0 comments on commit 4a0f210

Please sign in to comment.