Skip to content

feat: hmr channel supports action msg #1155

@PeachScript

Description

@PeachScript

在 RSC 场景对 HMR 有两个新增需求:

  1. HMR runtime 支持 action 消息,允许 server 端主动触发客户端刷新,用于在 RSC server 产物更新时实现 Hot Reload,未来会再想方案支持 RSC server 组件的 HMR(直接做 HMR 不做 reload 了)
  2. 对于 async chunk 加载的模块,不能标记为 _main,因为 client 组件会通过 async chunk 加载,被标记为 _main 会出现 HMR 成功仍然 Hot Reload 的现象

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions