Skip to content

Commit 4a0f210

Browse files
authored
fix(esbuild): transpile with esnext in dev (#10215)
1 parent dfa22ca commit 4a0f210

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vite/src/node/plugins/esbuild.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ export function esbuildPlugin(options: ESBuildOptions = {}): Plugin {
179179
// Remove optimization options for dev as we only need to transpile them,
180180
// and for build as the final optimization is in `buildEsbuildPlugin`
181181
const transformOptions: TransformOptions = {
182+
target: 'esnext',
182183
...options,
183184
minify: false,
184185
minifyIdentifiers: false,

0 commit comments

Comments
 (0)