Open maschwenk opened 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.
require.extensions
tsx
ts
js
The number of entries in
require.extensions
can make lookups needlessly slow. Most apps will probably only use thetsx
/ts
/js
extensions, so it doesn't make sense to iterate through a bunch of paths that we know are extremely unlikely to hit.