Skip to content

feat(rolldown): add @prefresh/rolldown package#606

Merged
JoviDeCroock merged 6 commits intomainfrom
feat/rolldown-package
Mar 31, 2026
Merged

feat(rolldown): add @prefresh/rolldown package#606
JoviDeCroock merged 6 commits intomainfrom
feat/rolldown-package

Conversation

@JoviDeCroock
Copy link
Copy Markdown
Member

@JoviDeCroock JoviDeCroock commented Mar 29, 2026

Summary

  • add a new @prefresh/rolldown package that memoizes createContext() calls so Preact context identity survives HMR updates
  • use the published oxc-unshadowed-visitor package to mirror the upstream transform logic, and add focused package tests plus a changeset
  • add registry visibility metadata and discovery keywords for Rolldown/Vite listings, and link the new integration from the repo README

Combining this in preact-preset-vite with https://github.com/rolldown/plugins/blob/feat%2Fprefresh-plugin/examples%2Fprefresh%2Fvite.config.ts#L18-L19 would allow us to have babel-less in vite v8

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 29, 2026

🦋 Changeset detected

Latest commit: 4b6d42c

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

This PR includes changesets to release 1 package
Name Type
@prefresh/rolldown Minor

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

@JoviDeCroock JoviDeCroock marked this pull request as draft March 29, 2026 08:24
@JoviDeCroock JoviDeCroock marked this pull request as ready for review March 29, 2026 09:58
Copy link
Copy Markdown
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

And just for my own curiosity, does @rolldown/plugin-prefresh get deprecated/deleted now? Seems like it's mostly the same thing?

@JoviDeCroock
Copy link
Copy Markdown
Member Author

@rolldown/plugin-prefresh was a draft and they prefer it to be on our side

@rschristian
Copy link
Copy Markdown
Member

Absolutely makes sense, I imagine we'd also prefer owning it

We'll let changesets generate it
Copy link
Copy Markdown
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

Sorry for the nits! Super excited to have this tho

@JoviDeCroock JoviDeCroock merged commit b3edcf5 into main Mar 31, 2026
1 check passed
@JoviDeCroock JoviDeCroock deleted the feat/rolldown-package branch March 31, 2026 17:48
@github-actions github-actions bot mentioned this pull request Mar 31, 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.

2 participants