MCPcopy
hub / github.com/webpack/webpack / use

Function use

test/configCases/rule-set/custom/webpack.config.js:13–24  ·  view source on GitHub ↗

@type {RuleSetUseFunction}

(data)

Source from the content-addressed store, hash-verified

11 test: /[ab]\.js$/,
12 /** @type {RuleSetUseFunction} */
13 use(data) {
14 return /** @type {RuleSetUseItem} */ ({
15 loader: "./loader",
16 options: {
17 resource:
18 /** @type {string} */
19 (data.resource).replace(/^.*[\\/]/g, ""),
20 resourceQuery: data.resourceQuery,
21 issuer: data.issuer.replace(/^.*[\\/]/g, "")
22 }
23 });
24 }
25 }
26 ]
27 }

Callers 1

applyMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected