Skip to content

docs(config): document preserveEntrySignatures defaults - #23469

Merged
bluwy merged 1 commit into
vitejs:mainfrom
koriyoshi2041:docs/rolldown-preserve-entry-signatures
Sep 22, 2026
Merged

bluwy merged 1 commit into
vitejs:mainfrom
koriyoshi2041:docs/rolldown-preserve-entry-signatures

Conversation

@koriyoshi2041

Copy link
Copy Markdown
Contributor

Problem

Rolldown documents preserveEntrySignatures with a default of 'exports-only', but Vite supplies different defaults based on the build mode. This makes the effective behavior unclear when the option is omitted.

Fix

Document Vite's effective defaults under build.rolldownOptions: false for regular client builds, 'strict' for library builds, and 'allow-extension' for SSR builds.

Fixes #23451.

Test

  • pnpm exec oxfmt --check docs/config/build-options.md
  • pnpm run build
  • pnpm run docs-build
  • git diff --check

Risk

Documentation-only. The values are taken directly from the current build option construction, and user-provided rolldownOptions continue to override them.

@github-actions github-actions Bot added the bot: maybe Maybe a bot, LLM, or agent label Sep 11, 2026
@bluwy bluwy changed the title docs(config): document preserveEntrySignatures defaults (fix #23451) docs(config): document preserveEntrySignatures defaults Sep 22, 2026
@bluwy
bluwy merged commit bd97903 into vitejs:main Sep 22, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot: maybe Maybe a bot, LLM, or agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build.rolldownOptions.preserveEntrySignatures shows incorrect default

2 participants