Skip to content

Commit

Permalink
chore: update comment about build.target (#19047)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Dec 23, 2024
1 parent c31d747 commit 0e9e81f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/vite/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,15 @@ import type { RollupPluginHooks } from './typeUtils'
export interface BuildEnvironmentOptions {
/**
* Compatibility transform target. The transform is performed with esbuild
* and the lowest supported target is es2015/es6. Note this only handles
* syntax transformation and does not cover polyfills (except for dynamic
* import)
* and the lowest supported target is es2015. Note this only handles
* syntax transformation and does not cover polyfills
*
* Default: 'modules' - Similar to `@babel/preset-env`'s targets.esmodules,
* transpile targeting browsers that natively support dynamic es module imports.
* https://caniuse.com/es6-module-dynamic-import
* Default: 'modules' - transpile targeting browsers that natively support
* dynamic es module imports and `import.meta`
* (Chrome 87+, Firefox 78+, Safari 14+, Edge 88+).
*
* Another special value is 'esnext' - which only performs minimal transpiling
* (for minification compat) and assumes native dynamic imports support.
* (for minification compat).
*
* For custom targets, see https://esbuild.github.io/api/#target and
* https://esbuild.github.io/content-types/#javascript for more details.
Expand Down

0 comments on commit 0e9e81f

Please sign in to comment.