Skip to content

Commit

Permalink
docs: fix stale target description
Browse files Browse the repository at this point in the history
This was left by vitejs#2976.
  • Loading branch information
sapphi-red committed May 18, 2022
1 parent cfd57d6 commit 2e1703c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ export default defineConfig({
- **Default:** `'modules'`
- **Related:** [Browser Compatibility](/guide/build#browser-compatibility)

Browser compatibility target for the final bundle. The default value is a Vite special value, `'modules'`, which targets [browsers with native ES module support](https://caniuse.com/es6-module).
Browser compatibility target for the final bundle. The default value is a Vite special value, `'modules'`, which targets browsers with [native ESM script tag](https://caniuse.com/es6-module) and [native ESM dynamic import](https://caniuse.com/es6-module-dynamic-import) support.

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

Expand Down

0 comments on commit 2e1703c

Please sign in to comment.