unjs / jiti

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

perf: reduce overhead of sub jiti instances #265

Closed pi0 closed 1 week ago

pi0 commented 1 week ago

jiti creates a new instance when evaluating nested modules.

Some operations can be avoided and this PR avoids cache + option resolution. (more could be done but needs more refactor!)