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

feat: allow build watch with tree-shaking #1687

Open
PeachScript opened this issue Nov 11, 2024 · 0 comments
Open

feat: allow build watch with tree-shaking #1687

PeachScript opened this issue Nov 11, 2024 · 0 comments

Comments

@PeachScript
Copy link
Member

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

所以需要支持:

  • build watch 的时候 tree-shaking 仍然生效
  • 同时允许不压缩代码便于排查问题
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

No branches or pull requests

2 participants