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

Function moduleScope

test/hotCases/css/css-entry-mini-extract/test.config.js:4–9  ·  view source on GitHub ↗
(scope)

Source from the content-addressed store, hash-verified

2
3module.exports = {
4 moduleScope(scope) {
5 const link = scope.window.document.createElement("link");
6 link.rel = "stylesheet";
7 link.href = "https://test.cases/path/css-entry.css";
8 scope.window.document.head.appendChild(link);
9 },
10 env: "jsdom"
11};

Callers

nothing calls this directly

Calls 2

createElementMethod · 0.80
appendChildMethod · 0.80

Tested by

no test coverage detected