MCPcopy Index your code
hub / github.com/doesdev/rollup-plugin-analyzer / sizeOrCodeSize

Function sizeOrCodeSize

index.js:23–26  ·  view source on GitHub ↗
(size, code)

Source from the content-addressed store, hash-verified

21const match = (str, check) => str.indexOf(check) !== -1;
22
23const sizeOrCodeSize = (size, code) => {
24 if (size || size === 0) return size
25 return code ? Buffer.byteLength(code, 'utf8') : 0
26};
27
28const filterByType = {
29 function: (filter, m) => filter(m),

Callers 1

analyzerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…