Skip to content

chore: optimize startup performance #6952

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

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

kovsu
Copy link
Member

@kovsu kovsu commented Sep 15, 2023

  1. replace ts-node with tsx

使用 tsx 替代 ts-node

ref: ant-design/ant-design#44688

16947431866722
16947432129560

  1. when you run dev script, due to npm pre hook, it will first execute predev then run dev. so predev script runs repeatedly in our code.

解决 npm run dev 运行两次 predev 的问题。因为运行 dev 时,会先运行 predev,然后再运行 dev,然后导致 predev 运行了两次。可以查看这篇文章或者官方文档

  1. set skipErrorChecking with true for TypeDoc

TypeDoc 配置属性 skipErrorChecking

16947449261103
image

@kovsu kovsu requested a review from tangjinzhou September 15, 2023 03:22
@kovsu kovsu force-pushed the tsx-replace-ts-node branch from c3f07da to 07c9283 Compare September 15, 2023 03:25
@tangjinzhou tangjinzhou merged commit 0f1ffc9 into vueComponent:main Sep 15, 2023
@kovsu kovsu deleted the tsx-replace-ts-node branch September 15, 2023 06:21
@kovsu
Copy link
Member Author

kovsu commented Sep 21, 2023

predev script 只会在 npm 或者 yarn 运行 dev 的时候运行, pnpm 不行

Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants