Skip to content

refactor: remove react-server-dom-webpack/client alias#1995

Draft
hi-ogawa wants to merge 5 commits intowakujs:mainfrom
hi-ogawa:refactor-remove-react-server-dom-webpack-client-alias
Draft

refactor: remove react-server-dom-webpack/client alias#1995
hi-ogawa wants to merge 5 commits intowakujs:mainfrom
hi-ogawa:refactor-remove-react-server-dom-webpack-client-alias

Conversation

@hi-ogawa
Copy link
Copy Markdown
Collaborator

@hi-ogawa hi-ogawa commented Mar 21, 2026

Follow-up to #1993 (comment)

Waku was still using react-server-dom-webpack/client instead of accessing @vitejs/plugin-rsc/browser API even though they were forcefully aliased to the same thing via plugin.

@vitejs/plugin-rsc now has a proper options types for RSC API surfaces (see vitejs/vite-plugin-react#1154) and it allows replacing directly without losing types.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
waku Ready Ready Preview Mar 21, 2026 8:58am

Request Review

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Mar 21, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 21, 2026

Open in StackBlitz

npm i https://pkg.pr.new/waku@1995

commit: 9112efc

@dai-shi
Copy link
Copy Markdown
Member

dai-shi commented Mar 21, 2026

Waku was still using react-server-dom-webpack/client instead of accessing @vitejs/plugin-rsc/browser API

That's actually intentional, and I hoped react-server-dom-vite to be real. Though, I agree the aliasing is counter-intuitive and not very straightforward. So, yeah, I can change that.

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