-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Improve resolve performance with many files #2654
Conversation
The version 4.1.1 of `tsconfig-paths` includes a performance fix, that can improve resolve speed by 10-20% in repositories with many files. See: dividab/tsconfig-paths#225
Codecov ReportBase: 95.27% // Head: 95.27% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #2654 +/- ##
=======================================
Coverage 95.27% 95.27%
=======================================
Files 68 68
Lines 2966 2966
Branches 1008 1008
=======================================
Hits 2826 2826
Misses 140 140 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
It looks like the tests on node 4 in macOS in Travis CI are failing. Is this something that should still be supported? Just checked and the latest major of
|
Yes, absolutely. We support down to eslint v2. |
This is a duplicate of #2447, and is also a breaking change. The best way to get this improvement into this project is for tsconfig-paths to backport it to v3. |
Thanks for the quick reply! Interesting, that's not a choice I would've made. I think in this particular case arguing multiple projects to backport PRs is an uphill battle, so in my case it looks like forking is the better option. |
Why would it be multiple projects? Isn't it just tsconfig-paths? |
As explained in #2447 the issue is that It's very unlikely that |
They're certainly allowed to not spend that energy, but I will continue to do so. |
@ljharb Why support old Node.js versions? People running such old runtimes are unlikely to update their libraries either. |
@kibertoad thats not true; it’s easy to update deps and very hard in many cases to update node itself. |
@ljharb Newer dependencies for anything major in most cases don't support old Node versions. There are exceptions, like Express.js which is notorious for being bullish on old Node, but those are fairly rare, everyone else at least use ES6 features and often async/await And teams that don't update Node more often than not don't touch "proven working" dependencies either, unless strictly needed. Eslint hardly qualifies as a critical update for legacy codebases. |
tsconfig-paths has shown to be amenable to backporting features to v3. In dividab/tsconfig-paths#264 I've proposed backporting the performance fix that triggered this PR so hopefully eslint-plugin-import can take advantage of it. |
Welcome @BPScott ! And your backport PR is also great! |
The version 4.1.1 of
tsconfig-paths
includes a performance fix, that can improve resolve speed by 10-20% in repositories with many files in of our projects.See: dividab/tsconfig-paths#225