MCPcopy
hub / github.com/webpack/webpack / getSize

Method getSize

lib/optimize/SplitChunksPlugin.js:1830–1837  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

1828 return key;
1829 },
1830 getSize(module) {
1831 /** @type {Sizes} */
1832 const size = Object.create(null);
1833 for (const key of module.getSourceTypes()) {
1834 size[key] = module.size(key);
1835 }
1836 return size;
1837 }
1838 });
1839 if (results.length <= 1) {
1840 continue;

Callers

nothing calls this directly

Calls 3

createMethod · 0.45
getSourceTypesMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected