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

chore: optimize bundle size #3750

Merged
merged 4 commits into from
Nov 2, 2020
Merged

chore: optimize bundle size #3750

merged 4 commits into from
Nov 2, 2020

Conversation

SoloJiang
Copy link
Collaborator

@SoloJiang SoloJiang commented Nov 2, 2020

  • 新增 store: false,可选不添加状态管理的能力
  • 新增支持页面路径可以不配置在 pages 下面的能力

@chenbin92 chenbin92 changed the base branch from release-next-rax to release-next November 2, 2020 04:24
@chenbin92 chenbin92 changed the base branch from release-next to release-next-rax November 2, 2020 04:25
@@ -0,0 +1,3 @@
# with rax
Copy link
Collaborator

Choose a reason for hiding this comment

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

后面可能需要考虑一下示例的维护和测试问题,需要有个策略,防止无限制的增加示例带来的冗余。

}
},
{
name: 'lite',
Copy link
Collaborator

Choose a reason for hiding this comment

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

没看出 lite 模式的作用是做了什么

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

去掉了,测试了一下 src/app.tsx 里不调用 runApp 就不会把框架运行时的依赖打进来

@chenbin92 chenbin92 changed the base branch from release-next-rax to release-next November 2, 2020 06:12
@SoloJiang SoloJiang merged commit 395ee8a into release-next Nov 2, 2020
@delete-merged-branch delete-merged-branch bot deleted the chore/bundle-size branch November 2, 2020 06:32
@SoloJiang SoloJiang mentioned this pull request Nov 12, 2020
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.

2 participants