Skip to content

Commit

Permalink
tweak code comments; I wrote them and they still confused me
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Dec 27, 2021
1 parent 0baab20 commit 11cb00e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,8 @@ let guaranteedNonexistentDirectorySuffix = 0;
* https://stackoverflow.com/questions/59865584/how-to-invalidate-cached-require-resolve-results
*/
function requireResolveNonCached(absoluteModuleSpecifier: string) {
// node 12.0.0 and 12.1.0 fallback: The trick below triggers a node bug.
// On those node versions, pollute the require cache instead. This is a deliberate
// node <= 12.1.x fallback: The trick below triggers a node bug on old versions.
// On these old versions, pollute the require cache instead. This is a deliberate
// ts-node limitation that will *rarely* manifest, and will not matter once node 12
// is end-of-life'd on 2022-04-30
const isSupportedNodeVersion = versionGteLt(process.versions.node, '12.2.0');
Expand Down

0 comments on commit 11cb00e

Please sign in to comment.