unjs / jiti

Runtime Typescript and ESM support for Node.js
MIT License
1.49k stars 52 forks source link

fix: use internal cached modules only if loaded #247

Closed pi0 closed 4 weeks ago

pi0 commented 4 weeks ago

rework of #245

detect cache race conditions while still handling circular resolution (when parent is not in loaded state)