Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSC: Enable babel plugins to get client Cell support #9973

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Feb 7, 2024

Slightly modified the logic for when RW inserts export default createCell(... at the end of cells to make it work with how RSC builds everything.

Enabled the web babel plugins when building for client and server

On the app side of things what you'll have to do is add "use client" to the top of your cell

@Tobbe Tobbe added the release:feature This PR introduces a new feature label Feb 7, 2024
@Tobbe Tobbe added this to the RSC milestone Feb 7, 2024
@Tobbe Tobbe enabled auto-merge (squash) February 7, 2024 13:05
@Tobbe Tobbe merged commit 3bbb5f5 into redwoodjs:main Feb 7, 2024
41 of 44 checks passed
@Tobbe Tobbe deleted the tobbe-rsc-use-client-cell branch February 7, 2024 13:09
@Josh-Walker-GM Josh-Walker-GM modified the milestones: RSC, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature This PR introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants