Conversation
|
We also encountered a lot of issues with performance, especially on Windows. |
|
A few other improvement ideas:
|
|
Wow, adding |
|
Have you checked the bootstrapping example in the readme? Calling the tsconfig-paths API in your own wrapper scripts gives you more control. EDIT: You can see all the params of the register call in the readme. |
|
Honestly I like the simplicity of But I guess I could build my own simple |
|
If you want a quick solution for filesystem caching you could probably make a bootstrap scripts that calls the lower level creatematchpath. This function accepts a |
|
@jonaskello I think it's better to figure out a solution for everyone. So far I'm unblocked by hacking the module directly, but let's figure out a proper code fix. |
|
Having a bootstrap script is probably a better way to figure out a solution than hacking the installed script. Once you have a bootstrap script that works well you could contribute back that solution either as an example snippet or a PR to the core API. As inspiration for using |



In a large codebase,
tsconfig-pathsstarts to introduce performance issues as many modules need to be loaded. In #72 (comment), @BJChen990 suggested introducing a cache to avoid hitting the filesystem multiple times for the same path. For me, this resulted in a ~50% speedup.