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

perf: Reuse VueFile instances between monorepo packages #3450

Merged
merged 15 commits into from Jul 26, 2023

Conversation

johnsoncodehk
Copy link
Member

@johnsoncodehk johnsoncodehk commented Jul 26, 2023

Close #3328, close #3349

When vueCompilerOptions and a few ts options between monorepo packages are the same, share VueFile for them instead of maintaining each own VueFile. This can solve the problem that a certain package has thousands of .vue files, and other packages all refer to this package, resulting in a surge in memory. So external files parsing is now safely supported.

When a VueFile is successfully reused can be mysterious to users, so I recommend people use Volar Labs' TS Treemap to visualize it.

@johnsoncodehk johnsoncodehk merged commit a0f0917 into master Jul 26, 2023
6 checks passed
@johnsoncodehk johnsoncodehk deleted the reuse-vuefile branch July 26, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants