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

[WIP] Support RSC #6460

Closed
wants to merge 8 commits into from
Closed

[WIP] Support RSC #6460

wants to merge 8 commits into from

Conversation

Coooder-X
Copy link

RSC 第一版提交,客户端组件暂时还无法渲染

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ClarkXia ClarkXia changed the title Rsc dev [WIP] support RSC Aug 14, 2023
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",
Copy link
Collaborator

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 指向框架内置的版本

packages/ice/package.json Outdated Show resolved Hide resolved
webpackConfig.plugins.push(new ReactServerWebpackPlugin({
isServer: false,
clientReferences: [{
directory: `${rootDir}/src`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

框架部分运行时代码在 .ice 目录和 @ice/runtime,这个插件相关逻辑可以考虑单独定制维护

@ClarkXia ClarkXia changed the title [WIP] support RSC [WIP] Support RSC Aug 15, 2023
@ClarkXia ClarkXia changed the base branch from master to release/rsc August 31, 2023 08:45
@ClarkXia
Copy link
Collaborator

see #6502

@ClarkXia ClarkXia closed this Sep 26, 2023
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.

4 participants