Skip to content

feat(vite): adopt rolldown refresh pipeline#607

Merged
JoviDeCroock merged 9 commits intomainfrom
feat/vite-rolldown
Apr 6, 2026
Merged

feat(vite): adopt rolldown refresh pipeline#607
JoviDeCroock merged 9 commits intomainfrom
feat/vite-rolldown

Conversation

@JoviDeCroock
Copy link
Copy Markdown
Member

@JoviDeCroock JoviDeCroock commented Mar 30, 2026

Summary

  • switch @prefresh/vite to configure Vite OXC for Preact and compose @prefresh/rolldown for the default refresh path
  • keep the existing Babel transform as a selective fallback when parserPlugins are provided, matching the preset-vite split between OXC and Babel
  • update fixture dependencies and the lockfile for the new Vite 8 and rolldown-based setup
  • The biggest diff comes from duplicating the E2E to also do vite-babel

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 30, 2026

🦋 Changeset detected

Latest commit: bd22f93

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@prefresh/vite Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Base automatically changed from feat/rolldown-package to main March 31, 2026 17:48
Only disable the Babel path when resolved Vite config exposes OXC support, and keep the broader Vite peer range while the package still supports older setups.
@JoviDeCroock JoviDeCroock marked this pull request as ready for review April 2, 2026 17:41

return supportsRolldown
? {
esbuild: stripHandledEsbuildOptions(config),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vite will merge the returned value with the original one. So stripping here won't affect unless you modify the config object. I guess it won't break anything though.

@JoviDeCroock JoviDeCroock requested a review from rschristian April 3, 2026 07:24
@JoviDeCroock JoviDeCroock merged commit 752e78c into main Apr 6, 2026
@JoviDeCroock JoviDeCroock deleted the feat/vite-rolldown branch April 6, 2026 05:13
@github-actions github-actions bot mentioned this pull request Apr 8, 2026
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