MCPcopy
hub / github.com/webpack/webpack / index.js

File index.js

test/cases/cjs-tree-shaking/require-member-access/index.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1it("should tree-shake CommonJS exports when accessed via a member call", () => {
2 const m = require("./module");
3 expect(m.a()).toBe("a");
4 expect(m.usedExports).toEqual(["a", "usedExports"]);

Callers

nothing calls this directly

Calls 4

itFunction · 0.50
requireFunction · 0.50
aFunction · 0.50
mFunction · 0.50

Tested by

no test coverage detected