v8-compile-cache

JSON →
library 2.4.0 ·javascript
verified Jun 7, 2026

Attaches a require hook to persist V8's code cache to disk, significantly speeding up module loading for Node.js applications. Version 2.4.0 is the latest stable release, last updated in October 2021. It works with Node >=5.7.0 (noop on older versions). Key differentiators: zero-config setup (just require it in your entry file), automatic cache invalidation based on V8 version, and notable performance improvements (e.g., 15-50% faster loading for heavy modules like babel-core and yarn). Alternatives like @babel/register or node-persist are more complex or not V8-specific.