MCPcopy Index your code
hub / github.com/developit/microbundle / loadNameCache

Function loadNameCache

src/index.js:411–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409 let endsWithNewLine = false;
410
411 function loadNameCache() {
412 try {
413 const data = fs.readFileSync(getNameCachePath(), 'utf8');
414 endsWithNewLine = data.endsWith(EOL);
415 nameCache = JSON.parse(data);
416 // mangle.json can contain a "minify" field, same format as the pkg.mangle:
417 if (nameCache.minify) {
418 minifyOptions = Object.assign(
419 {},
420 minifyOptions || {},
421 nameCache.minify,
422 );
423 }
424 } catch (e) {}
425 }
426 loadNameCache();
427
428 normalizeMinifyOptions(minifyOptions);

Callers 1

createConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…