feat: optimize package imports support cache, export * and deep barrel files #810
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
优化了 Optimize Package Imports 的实现,
1、增加 cache,以避免不必要的 Module Build,但需注意的是 Cache 本身也有消耗,待 Benchmark
2、支持递归找桶文件,这样能增加覆盖率,覆盖率上去后,效果应该会更好一些
3、现在只有项目文件会做这个处理,至于 node_modules 下要不要做这个,需 Benchmark 验证
4、补充相关用例
5、@ant-design/icons 只使用了几个的场景
6、antd 只用了 button 的场景
一些 TODOs: