MCPcopy
hub / github.com/webpack/webpack / moduleScope

Function moduleScope

test/configCases/split-chunks/css-enforce/test.config.js:7–16  ·  view source on GitHub ↗
(scope)

Source from the content-addressed store, hash-verified

5 return ["main.js"];
6 },
7 moduleScope(scope) {
8 const link1 = scope.window.document.createElement("link");
9 link1.rel = "stylesheet";
10 link1.href = "main.css";
11 scope.window.document.head.appendChild(link1);
12 const link2 = scope.window.document.createElement("link");
13 link2.rel = "stylesheet";
14 link2.href = "vendors.css";
15 scope.window.document.head.appendChild(link2);
16 }
17};

Callers

nothing calls this directly

Calls 2

createElementMethod · 0.80
appendChildMethod · 0.80

Tested by

no test coverage detected