Skip to content
All news
ReleaseAI-written

Vite 8.3.8 retains transform hook data and rejects CSS entrypoints when cssCodeSplit is false

Vite 8.3.8 introduces a build transform hook that retains the magicString and ast objects, rejects CSS entrypoints when build.cssCodeSplit is false, and optimizes Sass imports to run only once per project, speeding up builds.

Vite 8.3.8 was released on 2026-11-11. The build transform hook now retains the magicString and ast objects, and a previous fix that kept those objects in transform hook meta was reverted. When build.cssCodeSplit is false, CSS entrypoints are rejected, which can cause build failures for projects that rely on them. CSS imports of Sass now occur only once per project instead of per file, improving build speed.

In bundled‑dev mode, assets referenced by inline workers are emitted during load. Config processing now skips native loader compatibility checks for type‑only imports, reducing unnecessary validation steps.

On Windows, running yarn config get no longer opens a console window, and the net use command is deferred until a UNC path is resolved, avoiding premature network calls.

The Vitest plugin is now enabled in Oxlint, and Vitest style rules are also enabled in Oxlint, extending linting coverage for test code.

Test suite changes avoid joining logs for assertions, simplifying output comparison.

  • All non‑major dependencies were updated in this release.
  • The @types/node dependency was upgraded to version 26.
  • The optimizer now uses a non‑capturing group for the external types regex.