A persistent filesystem cache for Browserify that speeds up incremental builds by storing transformation results per file. Version 1.2.2 is the latest stable release; the package is in maintenance mode with no new features expected. It requires a version of Browserify that depends on module-deps >=4.1.0 (e.g., browserify v14.1.0+). Key differentiators: supports garbage collection, logging API for debugging slow builds, and manual cache invalidation via a hashObject. Unlike other caching solutions (e.g., browserify-incremental), it persists to disk so that even CI builds benefit from cached results between runs.
npm install browserify-persist-fsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a persistent cache for Browserify, pass it as option, and perform garbage collection.
Upgrade browserify to v14.1.0 or later.
Consider migrating to browserify-incremental or other alternatives if you need active maintenance.
Always include relevant transform versions and configuration flags in the hashObject. Re-run after any change.
Set up a scheduled task (e.g., cron) or call gc() after each build with sensible limits.
Run 'npm install browserify-persist-fs --save-dev'
Call the default export: const cache = createPersistFs(...); then pass cache to browserify({ persistentCache: cache }).Store the result of createPersistFs(...) and call gc on that object.
No dependency data recorded yet.