Skip to content

Website: upgrade Vite 7 -> 8 (Rolldown) + vite-plugin-static-copy 4#14699

Open
ondrejmirtes wants to merge 1 commit into
2.2.xfrom
website-deps-vite8
Open

Website: upgrade Vite 7 -> 8 (Rolldown) + vite-plugin-static-copy 4#14699
ondrejmirtes wants to merge 1 commit into
2.2.xfrom
website-deps-vite8

Conversation

@ondrejmirtes
Copy link
Copy Markdown
Member

Upgrades the website bundler to Vite 8, which defaults to Rolldown (replacing Rollup) and Oxc/Lightning CSS (replacing esbuild) for bundling, transforms and minification.

  • vite 7.3.3 → 8.0.14
  • vite-plugin-static-copy 3.4.0 → 4.1.0

Verification

  • npm run check passes (tsc + ESLint).
  • Production build succeeds (~5s, down from ~10s).
  • Generated site is functionally identical to before: all HTML, the RSS feed, the sitemap and the output file layout match after normalizing content hashes and the git-branch substitution. Only the minified JS/CSS bundle internals differ (expected — different minifier).
  • Smoke-tested the built site with Playwright (homepage, /try playground, user guide, blog) — no console errors.

Note on vite-plugin-static-copy v4

v4 always preserves the matched source path (the structured option was removed), which doubled the email-image directories (images-emails/images-emails/…). Fixed by setting those copy targets' dest to . so the preserved path lands at the right place. Requires Node ^22 || >=24 (CI uses a compatible version).

🤖 Generated with Claude Code

Vite 8 uses Rolldown/Oxc instead of Rollup/esbuild by default. The build
succeeds and the generated site is functionally identical (HTML, RSS feed,
sitemap and file layout all unchanged); only the minified bundle internals
differ. Smoke-tested the built site (homepage, /try playground, user guide,
blog) with no console errors.

vite-plugin-static-copy v4 always preserves the matched source path, which
doubled the images-emails directories (images-emails/images-emails/...).
Fixed by setting those copy targets' dest to '.'.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

1 participant