MCPcopy
hub / github.com/meteor/meteor / _readResolverResultCache

Function _readResolverResultCache

tools/project-context.js:601–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

599 }),
600
601 _readResolverResultCache() {
602 if (! this._resolverResultCache) {
603 try {
604 this._resolverResultCache =
605 JSON.parse(files.readFile(files.pathJoin(
606 this.projectLocalDir,
607 "resolver-result-cache.json"
608 )));
609 } catch (e) {
610 if (e.code !== "ENOENT") throw e;
611 this._resolverResultCache = {};
612 }
613 }
614
615 return this._resolverResultCache;
616 },
617
618 _saveResolverResultCache() {
619 files.writeFileAtomically(

Callers

nothing calls this directly

Calls 2

parseMethod · 0.65
readFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…