Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
it(
"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
it
Function · 0.50
require
Function · 0.50
a
Function · 0.50
m
Function · 0.50
Tested by
no test coverage detected