MCPcopy Index your code
hub / github.com/developit/optimize-plugin / add

Method add

src/index.js:345–348  ·  view source on GitHub ↗
(name, timing)

Source from the content-addressed store, hash-verified

343 if (timings) {
344 const times = polyfillsBundle.getTimings();
345 const add = (name, timing) => {
346 const t = times[timing];
347 if (t) timings.push({ depth: 2, name, duration: t[0] });
348 };
349 add('parse', '## parse modules');
350 add('node-resolve', '- plugin 2 (node-resolve) - resolveId (async)');
351 add('generate', '# GENERATE');

Callers 2

optimizeMethod · 0.80
onPolyfillFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected