Skip to content

Commit d9fb9f7

Browse files
authored
docs: build.target terser < 5.16 specific behaviour (#12506)
1 parent b02727c commit d9fb9f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/build-options.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Browser compatibility target for the final bundle. The default value is a Vite s
1010

1111
Another special value is `'esnext'` - which assumes native dynamic imports support and will transpile as little as possible:
1212

13-
- If the [`build.minify`](#build-minify) option is `'terser'`, `'esnext'` will be forced down to `'es2021'`.
13+
- If the [`build.minify`](#build-minify) option is `'terser'` and the installed Terser version is below 5.16.0, `'esnext'` will be forced down to `'es2021'`.
1414
- In other cases, it will perform no transpilation at all.
1515

1616
The transform is performed with esbuild and the value should be a valid [esbuild target option](https://esbuild.github.io/api/#target). Custom targets can either be an ES version (e.g. `es2015`), a browser with version (e.g. `chrome58`), or an array of multiple target strings.

0 commit comments

Comments
 (0)