Merged
Conversation
Collaborator
XGHeaven
commented
Nov 13, 2024
- 新增一个独立的 declaration 任务,专门用于构建声明文件
- 此任务和其他任务并行运行,提升构建速度,拿单测测试,大约可以用 8.04s 提升到 6.69s。
- 新的任务支持两种模式
- 传统的方式,将声明文件直接写入到各个 transform 的 format 的产物中
- 单例的方式,将声明文件只写入到统一的 typings 文件内,不再和 trasnform 的任务关联,也就是说没有 transform 任务的时候也可以进行构建声明文件
- 但是第二种对 alias 处理有一些问题,tsc-alias 这个包强依赖构建产物,导致现阶段依旧要和 transform 任务绑定。后续尝试替换一下这个包
More templates
@ice/create-pkg
@ice/pkg
@ice/pkg-plugin-docusaurus
ice-npm-utils
@ice/pkg-plugin-rax-component
@ice/pkg-plugin-jsx-plus
@ice/remark-react-docgen-docusaurus
commit: |
c1d8237 to
017d397
Compare
017d397 to
69e5a01
Compare
wssgcg1213
approved these changes
Nov 15, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.