cache-require-paths icon indicating copy to clipboard operation
cache-require-paths copied to clipboard

Caches resolved paths in module require to avoid Node hunting for right module. Speeds up app load.

Results 9 cache-require-paths issues
Sort by recently updated
recently updated
newest added

.cache-require-paths.json was not getting created. Looked at code seems that a clean exist needs to be had but when adding it to an existing project that listens on sockets and...

Bumps [sails](https://github.com/balderdashy/sails) from 0.11.0 to 1.2.3. Release notes *Sourced from [sails's releases](https://github.com/balderdashy/sails/releases).* > ## v1.2.2 > • Update merge-defaults dependency to resolve potential vulnerabilities > • Update sails-stringfile dependency to...

dependencies

I don't understand why this requires persistence to a .json file? Is there a way to do this in memory? Or maybe it's because on the second run it can...

as mentioned in https://github.com/bahmutov/cache-require-paths/pull/12#issuecomment-386129688 : > Just a question what needs to happen for this change to appear @ npm? > I think this usually happes automatically, but it looks...

Just stumbled upon this interesting project. Do you mind providing some stats with npm@3 and node@4? As there has been quite a lot of work around dependencies management, I'm curious...

In my test code I'm registering a substitute module for `electron`. When I enable `cache-require-paths` it will never use the substituted module, and instead error: `Error: Cannot find module 'electron'`...

bug

check if dependencies / dev dependencies / peer dependencies changed since last cache - invalidate saved cache if so. Then see if this speeds up yeoman https://github.com/yeoman/generator/issues/530

enhancement

Without this module, when loading Sails-based tests I saw about 6k stat() misses and a single test took about 6.5s to run. With it, I saw 1.2k stat() misses (some/all...

I wrote this: https://github.com/Shyp/cache-require-paths/commit/f21238ca914a96b6b53f7945d33b48a9b1ae4e1c then realized it's not the right thing really... we don't care about absolute vs. relative, so much as we care about whether the path references something...