unjs / jiti

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

refactor: use more clear `fsCache` and `moduleCache` options #263

Closed pi0 closed 1 week ago

pi0 commented 1 week ago

cache / requireCache options where confusing in previous versions of jiti and often the perf benefits of disk cache was being missed because usages was disabling fs caching wrongly assuming it stops HMR support.

Config deprecations:

This PR includes some other cache-related minor changes.