Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: allow build watch with tree-shaking #1687

Open
PeachScript opened this issue Nov 11, 2024 · 1 comment
Open

feat: allow build watch with tree-shaking #1687

PeachScript opened this issue Nov 11, 2024 · 1 comment
Assignees

Comments

@PeachScript
Copy link
Member

SSR/RSC 研发场景下,本地开发阶段需要实时生成 server 产物,倘若没有 tree-shaking,会出现 client 模块被打入 server 产物,导致渲染报错的情况

所以需要支持:

  • build watch 的时候 tree-shaking 仍然生效
  • 同时允许不压缩代码便于排查问题
Copy link

在 SSR/RSC 研发场景下,您希望在本地开发阶段实时生成 server 产物时,支持 build watch 的同时 tree-shaking 仍然生效,并且允许不压缩代码以便于排查问题。

这是一个新功能请求,旨在解决没有 tree-shaking 时,client 模块被打入 server 产物导致渲染报错的问题。为了实现这个功能,可能需要对构建工具进行一些配置或代码修改。

如果您有任何具体的代码问题或需要进一步的帮助,请在评论中描述您的问题,并 @petercat-assistant 以便我能帮助您。

For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants