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

does it require persistence?

Open ORESoftware opened this issue 7 years ago • 2 comments

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 lookup in the .json file? An explanation of how it works in the readme would be nice.

ORESoftware avatar Jan 05 '19 10:01 ORESoftware

"The first time the app loads, a cache of resolved file paths will be saved to .cache-require-paths.json in the current directory. Every application startup after that will reuse this filename cache to avoid "hunting" for the right filename."

ivan avatar Jan 05 '19 10:01 ivan

yeah I saw that afterwards haha ok. The only remaining question i have - it seems like it only works with dependencies in node_modules, not other files. I suppose there might be 100s of deps in node_modules though.

ORESoftware avatar Jan 05 '19 11:01 ORESoftware