-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[WIP] Support RSC #6460
[WIP] Support RSC #6460
Conversation
|
package.json
Outdated
@@ -57,8 +57,8 @@ | |||
"lint-staged": "^13.0.3", | |||
"prettier": "^2.7.1", | |||
"puppeteer": "^19.6.3", | |||
"react": "^18.2.0", | |||
"react-dom": "^18.2.0", | |||
"react": "^18.3.0-canary-1cea38448-20230530", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果启动 RSC 可以不用让开发者修改 react 版本,这个 canary 版本的维护放在 @ice/bundles 下,启用 RSC 后通过 alias 默认将 react 和 react-dom 指向框架内置的版本
webpackConfig.plugins.push(new ReactServerWebpackPlugin({ | ||
isServer: false, | ||
clientReferences: [{ | ||
directory: `${rootDir}/src`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
框架部分运行时代码在 .ice
目录和 @ice/runtime
,这个插件相关逻辑可以考虑单独定制维护
see #6502 |
RSC 第一版提交,客户端组件暂时还无法渲染