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: dts 支持异步生成 #769

Open
sorrycc opened this issue Aug 1, 2024 · 0 comments
Open

feat: dts 支持异步生成 #769

sorrycc opened this issue Aug 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sorrycc
Copy link
Member

sorrycc commented Aug 1, 2024

What problem does this feature solve?

dts 生成是目前整个环节里最慢的部分,但 dts 是同步串行的。怎么理解同步串行?1)比如 cjs 和 esm 的 dts 生成是串行的,一个的执行需要等另一个,2)多次编辑文件时,如果上次 dts 的生成没有结束,下一次编辑的 transform 也会等着,而 dev 是为了快速让文件修改生效,dts 应是可选的,所以不应该等 dts 的完成。

Possible Solution (optional)

dts 生成改成异步 fork 的。

@sorrycc sorrycc added the enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant