MCPcopy
hub / github.com/webpack/webpack / findBundle

Function findBundle

test/configCases/contenthash/salt/test.config.js:9–19  ·  view source on GitHub ↗
(i, options)

Source from the content-addressed store, hash-verified

7
8module.exports = {
9 findBundle(i, options) {
10 const bundle = findOutputFiles(options, new RegExp(`^bundle${i}`))[0];
11 allBundles.add(/\.([^.]+)\./.exec(bundle)[1]);
12
13 const assets = findOutputFiles(options, /^img/);
14 for (const asset of assets) {
15 allAssets.add(asset);
16 }
17
18 return `./${bundle}`;
19 },
20 afterExecute: () => {
21 // Since there are exactly 2 unique values of output.hashSalt,
22 // there should be exactly 2 unique output hashes for each file.

Callers

nothing calls this directly

Calls 2

execMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected