dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.
MIT License
1.8k stars 100 forks source link

Make extensions configurable #228

Open maschwenk opened 1 year ago

maschwenk commented 1 year ago

The number of entries in require.extensions can make lookups needlessly slow. Most apps will probably only use the tsx/ts/js extensions, so it doesn't make sense to iterate through a bunch of paths that we know are extremely unlikely to hit.