Skip to content

perf(typescript): support vue files with project reference delcaration#93

Closed
blake-newman wants to merge 2 commits intomasterfrom
blake.newman/vue-file-project-references
Closed

perf(typescript): support vue files with project reference delcaration#93
blake-newman wants to merge 2 commits intomasterfrom
blake.newman/vue-file-project-references

Conversation

@blake-newman
Copy link
Copy Markdown
Contributor

Support vue files with project reference output, so that typescript resolves the project reference vue file as the output vue.d.ts file rather than the source.

This drastically improves performance in large projects that have vue files imported from project references. As much as 50% performance improvements as ts no longer recompiles vue files from source.

Setup the real path to pass back the real path of vue files, as they are virtual files the inbuilt realpath always returns the non symlinked version (node_modules), which affects DX with vue-tsc as errors originating from upstream project reference packages are returned with the node modules path rather than the source. This change is also required to power the usage of d.ts files.

Support vue files with project reference output, so that typescript resolves the
project reference vue file as the output `vue.d.ts` file rather than the source.

This drastically improves performance in large projects that have vue files imported
from project references. As much as 50% performance improvements as ts no longer
recompiles vue files from source.

Setup the real path to pass back the real path of vue files, as they are virtual files
the inbuilt realpath always returns the non symlinked version (node_modules), which
affects DX with vue-tsc as errors originating from upstream project reference packages
are returned with the node modules path rather than the source. This change is
also required to power the usage of `d.ts` files.
@johnsoncodehk johnsoncodehk changed the title perf(typecript): support vue files with project reference delcaration perf(typescript): support vue files with project reference delcaration Nov 23, 2023
@johnsoncodehk johnsoncodehk mentioned this pull request Nov 23, 2023
42 tasks
@johnsoncodehk johnsoncodehk force-pushed the master branch 3 times, most recently from c9d0b9b to e677179 Compare December 26, 2023 20:56
@johnsoncodehk johnsoncodehk deleted the blake.newman/vue-file-project-references branch May 24, 2024 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants