Skip to content

Commit 0e9e81f

Browse files
authored
chore: update comment about build.target (#19047)
1 parent c31d747 commit 0e9e81f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/vite/src/node/build.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,15 @@ import type { RollupPluginHooks } from './typeUtils'
7878
export interface BuildEnvironmentOptions {
7979
/**
8080
* Compatibility transform target. The transform is performed with esbuild
81-
* and the lowest supported target is es2015/es6. Note this only handles
82-
* syntax transformation and does not cover polyfills (except for dynamic
83-
* import)
81+
* and the lowest supported target is es2015. Note this only handles
82+
* syntax transformation and does not cover polyfills
8483
*
85-
* Default: 'modules' - Similar to `@babel/preset-env`'s targets.esmodules,
86-
* transpile targeting browsers that natively support dynamic es module imports.
87-
* https://caniuse.com/es6-module-dynamic-import
84+
* Default: 'modules' - transpile targeting browsers that natively support
85+
* dynamic es module imports and `import.meta`
86+
* (Chrome 87+, Firefox 78+, Safari 14+, Edge 88+).
8887
*
8988
* Another special value is 'esnext' - which only performs minimal transpiling
90-
* (for minification compat) and assumes native dynamic imports support.
89+
* (for minification compat).
9190
*
9291
* For custom targets, see https://esbuild.github.io/api/#target and
9392
* https://esbuild.github.io/content-types/#javascript for more details.

0 commit comments

Comments
 (0)