Changelog

vitejs/vite · · 5 commits

Define fix lands, docs clarified

Vite fixes $-prefixed define replacements, updates CSS target precedence docs, and cleans up Rolldown config imports.

Fix define replacements for $-prefixed keys (contactjawaddcf88bd)

Vite now correctly matches escaped dots without breaking define keys that contain $, so replacements like $FOO are transformed as expected. The added test covers this regression and confirms the plugin emits the substituted value.

Use JSON import attributes in Rolldown configs (btead615bcd)

The Rolldown build and d.ts configs now import package.json directly with JSON import attributes instead of reading and parsing it from disk. This modernizes the config code and removes extra filesystem work during config loading.

Document cssTarget precedence over lightningcss targets (santhiprakasha20a35e)

The build docs and inline config comments now clarify that build.cssTarget wins over css.lightningcss.targets when CSS minification uses Lightning CSS. This resolves an easy-to-miss precedence detail that affects CSS output for browser-targeted builds.

Other misc changes

  • Rolldown sourcemapIgnoreList docs updated for current references (dogledogle74a25c3)
  • Markdown image size package bumped in docs tooling (dogledogle5e7efa0)