Skip to content

Commit 11cb00e

Browse files
committed
tweak code comments; I wrote them and they still confused me
1 parent 0baab20 commit 11cb00e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ let guaranteedNonexistentDirectorySuffix = 0;
427427
* https://stackoverflow.com/questions/59865584/how-to-invalidate-cached-require-resolve-results
428428
*/
429429
function requireResolveNonCached(absoluteModuleSpecifier: string) {
430-
// node 12.0.0 and 12.1.0 fallback: The trick below triggers a node bug.
431-
// On those node versions, pollute the require cache instead. This is a deliberate
430+
// node <= 12.1.x fallback: The trick below triggers a node bug on old versions.
431+
// On these old versions, pollute the require cache instead. This is a deliberate
432432
// ts-node limitation that will *rarely* manifest, and will not matter once node 12
433433
// is end-of-life'd on 2022-04-30
434434
const isSupportedNodeVersion = versionGteLt(process.versions.node, '12.2.0');

0 commit comments

Comments
 (0)