-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Expose resolveModuleNames
#861
Comments
I would be somewhat interested in something like this as well for a different reason. We found that for our project The default typescript resolver caches things by default. I tried removing the custom |
Go for it @arcanis! Experiment on! |
Will aim to set up a PR in the next week or so 👍 |
Cool - look forward to it. If tests cause you problems (many people bump on this) then stick up the PR and we can collaborate |
By the way, did you know about this option recently added to ts-loader which adds caching? I'm planning to turn it on by default (currently off) as I've had no reports of issues: |
Opened a PR at #862 with an initial implementation! 🙂 |
Yeah, I've tried it but it didn't make much of an improvement for us. The caching happens too late in the process it seems. Module resolution seems to be a recursive operation and that seems to be what's taking up the time. I took a look at the current PR and the changes are also happening at too low a level for the change I was thinking of making. I'll experiment a bit more with how the resolution could be sped up. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#862 is merged, issue fixed 👍 |
Hi!
Would it be possible to consider exposing the
resolveModuleNames
function (set inservicesHost.ts
) through a configuration settings?I'm currently experimenting integrating Yarn PnP with TypeScript through ts-loader, and my initial results are very promising. I think I could get something working just by going through this hook, which would unlock pretty interesting options!
The text was updated successfully, but these errors were encountered: