Skip to content

docs: update build CLI defaults#22261

Merged
sapphi-red merged 1 commit intovitejs:mainfrom
grzdev:docs/update-build-cli-defaults
Apr 20, 2026
Merged

docs: update build CLI defaults#22261
sapphi-red merged 1 commit intovitejs:mainfrom
grzdev:docs/update-build-cli-defaults

Conversation

@grzdev
Copy link
Copy Markdown
Contributor

@grzdev grzdev commented Apr 18, 2026

Summary

  • update the vite build CLI guide to document the current --target and --minify defaults
  • update vite build --help to include oxc as a valid minifier and show oxc as the default

Problem

Vite 8 uses baseline-widely-available as the default build.target, and build.minify supports oxc, terser, and esbuild, with oxc as the default for client builds.

The build options docs and implementation already reflect this, but the CLI guide and --minify help text still referenced older defaults.

Fix

  • update the --target row in the CLI guide to show baseline-widely-available
  • update the --minify row in the CLI guide to show oxc as the default and include it in the supported values
  • update the --minify help text in packages/vite/src/node/cli.ts to match current behavior

Verification

pnpm exec tsx packages/vite/src/node/cli.ts build --help
pnpm exec oxfmt --check packages/vite/src/node/cli.ts docs/guide/cli.md
git diff --check -- packages/vite/src/node/cli.ts docs/guide/cli.md

@sapphi-red sapphi-red merged commit 605bb97 into vitejs:main Apr 20, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants