Merge pull request #14325 from shfshanyue/main

chore: merge multi hash.update
This commit is contained in:
Tobias Koppers 2021-10-04 09:56:04 +02:00 committed by GitHub
commit 06da0cb441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 103 additions and 108 deletions

View File

@ -66,9 +66,10 @@ class AsyncDependenciesBlock extends DependenciesBlock {
if (this._stringifiedGroupOptions === undefined) {
this._stringifiedGroupOptions = JSON.stringify(this.groupOptions);
}
hash.update(this._stringifiedGroupOptions);
const chunkGroup = chunkGraph.getBlockChunkGroup(this);
hash.update(chunkGroup ? chunkGroup.id : "");
hash.update(
`${this._stringifiedGroupOptions}${chunkGroup ? chunkGroup.id : ""}`
);
super.updateHash(hash, context);
}

View File

@ -539,9 +539,9 @@ class Chunk {
* @returns {void}
*/
updateHash(hash, chunkGraph) {
hash.update(`${this.id} `);
hash.update(this.ids ? this.ids.join(",") : "");
hash.update(`${this.name || ""} `);
hash.update(
`${this.id} ${this.ids ? this.ids.join() : ""} ${this.name || ""} `
);
const xor = new StringXor();
for (const m of chunkGraph.getChunkModulesIterable(this)) {
xor.add(chunkGraph.getModuleHash(m, this.runtime));
@ -550,9 +550,7 @@ class Chunk {
const entryModules =
chunkGraph.getChunkEntryModulesWithChunkGroupIterable(this);
for (const [m, chunkGroup] of entryModules) {
hash.update("entry");
hash.update(`${chunkGraph.getModuleId(m)}`);
hash.update(chunkGroup.id);
hash.update(`entry${chunkGraph.getModuleId(m)}${chunkGroup.id}`);
}
}

View File

@ -1499,8 +1499,7 @@ Caller might not support runtime-dependent code generation (opt-out via optimiza
}
const graphHash = cgm.graphHashes.provide(runtime, () => {
const hash = createHash(this._hashFunction);
hash.update(`${cgm.id}`);
hash.update(`${this.moduleGraph.isAsync(module)}`);
hash.update(`${cgm.id}${this.moduleGraph.isAsync(module)}`);
this.moduleGraph.getExportsInfo(module).updateHash(hash, runtime);
return BigInt(`0x${/** @type {string} */ (hash.digest("hex"))}`);
});

View File

@ -48,8 +48,7 @@ class DependencyTemplates {
*/
updateHash(part) {
const hash = createHash(this._hashFunction);
hash.update(this._hash);
hash.update(part);
hash.update(`${this._hash}${part}`);
this._hash = /** @type {string} */ (hash.digest("hex"));
}

View File

@ -117,8 +117,7 @@ class DllModule extends Module {
* @returns {void}
*/
updateHash(hash, context) {
hash.update("dll module");
hash.update(this.name || "");
hash.update(`dll module${this.name || ""}`);
super.updateHash(hash, context);
}

View File

@ -1412,10 +1412,11 @@ class ExportInfo {
}
_updateHash(hash, runtime, alreadyVisitedExportsInfo) {
hash.update(`${this._usedName || this.name}`);
hash.update(`${this.getUsed(runtime)}`);
hash.update(`${this.provided}`);
hash.update(`${this.terminalBinding}`);
hash.update(
`${this._usedName || this.name}${this.getUsed(runtime)}${this.provided}${
this.terminalBinding
}`
);
if (this.exportsInfo && !alreadyVisitedExportsInfo.has(this.exportsInfo)) {
this.exportsInfo._updateHash(hash, runtime, alreadyVisitedExportsInfo);
}

View File

@ -679,10 +679,10 @@ class ExternalModule extends Module {
*/
updateHash(hash, context) {
const { chunkGraph } = context;
hash.update(this.externalType);
hash.update(JSON.stringify(this.request));
hash.update(
JSON.stringify(Boolean(this.isOptional(chunkGraph.moduleGraph)))
`${this.externalType}${JSON.stringify(this.request)}${this.isOptional(
chunkGraph.moduleGraph
)}`
);
super.updateHash(hash, context);
}

View File

@ -137,11 +137,9 @@ class ArrayPushCallbackChunkFormatPlugin {
"ArrayPushCallbackChunkFormatPlugin",
(chunk, hash, { chunkGraph, runtimeTemplate }) => {
if (chunk.hasRuntime()) return;
hash.update("ArrayPushCallbackChunkFormatPlugin");
hash.update("1");
hash.update(`${runtimeTemplate.outputOptions.chunkLoadingGlobal}`);
hash.update(`${runtimeTemplate.outputOptions.hotUpdateGlobal}`);
hash.update(`${runtimeTemplate.outputOptions.globalObject}`);
hash.update(
`ArrayPushCallbackChunkFormatPlugin1${runtimeTemplate.outputOptions.chunkLoadingGlobal}${runtimeTemplate.outputOptions.hotUpdateGlobal}${runtimeTemplate.outputOptions.globalObject}`
);
const entries = Array.from(
chunkGraph.getChunkEntryModulesWithChunkGroupIterable(chunk)
);

View File

@ -3,54 +3,54 @@
exports[`StatsTestCases should print correct stats for aggressive-splitting-entry 1`] = `
"fitting:
PublicPath: auto
asset fitting-d0a5516addc573b26e2b.js 16.1 KiB [emitted] [immutable]
asset fitting-1c702fff0ba9fe1126d9.js 1.9 KiB [emitted] [immutable]
asset fitting-c0e0ed061413e64a66c5.js 1.9 KiB [emitted] [immutable]
asset fitting-3fdf9ef59eba6cfd6536.js 1.08 KiB [emitted] [immutable]
Entrypoint main 19.9 KiB = fitting-1c702fff0ba9fe1126d9.js 1.9 KiB fitting-c0e0ed061413e64a66c5.js 1.9 KiB fitting-d0a5516addc573b26e2b.js 16.1 KiB
chunk (runtime: main) fitting-d0a5516addc573b26e2b.js 1.87 KiB (javascript) 8.66 KiB (runtime) [entry] [rendered]
asset fitting-0bc75dc7c25c03335e16.js 16.1 KiB [emitted] [immutable]
asset fitting-50595d23e8f97d7ccd2a.js 1.9 KiB [emitted] [immutable]
asset fitting-5bc77880fdc9e2bf09ee.js 1.9 KiB [emitted] [immutable]
asset fitting-72afdc913f6cf884b457.js 1.08 KiB [emitted] [immutable]
Entrypoint main 19.9 KiB = fitting-50595d23e8f97d7ccd2a.js 1.9 KiB fitting-5bc77880fdc9e2bf09ee.js 1.9 KiB fitting-0bc75dc7c25c03335e16.js 16.1 KiB
chunk (runtime: main) fitting-0bc75dc7c25c03335e16.js 1.87 KiB (javascript) 8.66 KiB (runtime) [entry] [rendered]
> ./index main
runtime modules 8.66 KiB 11 modules
cacheable modules 1.87 KiB
./e.js 899 bytes [dependent] [built] [code generated]
./f.js 900 bytes [dependent] [built] [code generated]
./index.js 111 bytes [built] [code generated]
chunk (runtime: main) fitting-c0e0ed061413e64a66c5.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
chunk (runtime: main) fitting-5bc77880fdc9e2bf09ee.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
> ./index main
./c.js 899 bytes [built] [code generated]
./d.js 899 bytes [built] [code generated]
chunk (runtime: main) fitting-1c702fff0ba9fe1126d9.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
chunk (runtime: main) fitting-50595d23e8f97d7ccd2a.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
> ./index main
./a.js 899 bytes [built] [code generated]
./b.js 899 bytes [built] [code generated]
chunk (runtime: main) fitting-3fdf9ef59eba6cfd6536.js 916 bytes [rendered]
chunk (runtime: main) fitting-72afdc913f6cf884b457.js 916 bytes [rendered]
> ./g ./index.js 7:0-13
./g.js 916 bytes [built] [code generated]
fitting (webpack x.x.x) compiled successfully in X ms
content-change:
PublicPath: auto
asset content-change-9b9197519f9a69be0758.js 16.1 KiB [emitted] [immutable]
asset content-change-1c702fff0ba9fe1126d9.js 1.9 KiB [emitted] [immutable]
asset content-change-c0e0ed061413e64a66c5.js 1.9 KiB [emitted] [immutable]
asset content-change-3fdf9ef59eba6cfd6536.js 1.08 KiB [emitted] [immutable]
Entrypoint main 19.9 KiB = content-change-1c702fff0ba9fe1126d9.js 1.9 KiB content-change-c0e0ed061413e64a66c5.js 1.9 KiB content-change-9b9197519f9a69be0758.js 16.1 KiB
chunk (runtime: main) content-change-9b9197519f9a69be0758.js 1.87 KiB (javascript) 8.66 KiB (runtime) [entry] [rendered]
asset content-change-f715770db123da1acd5e.js 16.1 KiB [emitted] [immutable]
asset content-change-50595d23e8f97d7ccd2a.js 1.9 KiB [emitted] [immutable]
asset content-change-5bc77880fdc9e2bf09ee.js 1.9 KiB [emitted] [immutable]
asset content-change-72afdc913f6cf884b457.js 1.08 KiB [emitted] [immutable]
Entrypoint main 19.9 KiB = content-change-50595d23e8f97d7ccd2a.js 1.9 KiB content-change-5bc77880fdc9e2bf09ee.js 1.9 KiB content-change-f715770db123da1acd5e.js 16.1 KiB
chunk (runtime: main) content-change-f715770db123da1acd5e.js 1.87 KiB (javascript) 8.66 KiB (runtime) [entry] [rendered]
> ./index main
runtime modules 8.66 KiB 11 modules
cacheable modules 1.87 KiB
./e.js 899 bytes [dependent] [built] [code generated]
./f.js 900 bytes [dependent] [built] [code generated]
./index.js 111 bytes [built] [code generated]
chunk (runtime: main) content-change-c0e0ed061413e64a66c5.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
chunk (runtime: main) content-change-5bc77880fdc9e2bf09ee.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
> ./index main
./c.js 899 bytes [built] [code generated]
./d.js 899 bytes [built] [code generated]
chunk (runtime: main) content-change-1c702fff0ba9fe1126d9.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
chunk (runtime: main) content-change-50595d23e8f97d7ccd2a.js 1.76 KiB [initial] [rendered] [recorded] aggressive splitted
> ./index main
./a.js 899 bytes [built] [code generated]
./b.js 899 bytes [built] [code generated]
chunk (runtime: main) content-change-3fdf9ef59eba6cfd6536.js 916 bytes [rendered]
chunk (runtime: main) content-change-72afdc913f6cf884b457.js 916 bytes [rendered]
> ./g ./index.js 7:0-13
./g.js 916 bytes [built] [code generated]
content-change (webpack x.x.x) compiled successfully in X ms"
@ -58,66 +58,66 @@ content-change:
exports[`StatsTestCases should print correct stats for aggressive-splitting-on-demand 1`] = `
"PublicPath: auto
asset d665fde544fa85a0a6de.js 11.6 KiB [emitted] [immutable] (name: main)
asset b28b42175852a350ae55.js 1.91 KiB [emitted] [immutable]
asset 5dc82ad1144129efc6f0.js 1.91 KiB [emitted] [immutable]
asset 6861109a893ce5c56a08.js 1.9 KiB [emitted] [immutable]
asset cdb7e2808114a2288d95.js 1.9 KiB [emitted] [immutable]
asset 73372ad6d7fbb1fb063f.js 1.9 KiB [emitted] [immutable]
asset 84ccadf9c4e1e366e5ef.js 1.9 KiB [emitted] [immutable]
asset c0e0ed061413e64a66c5.js 1.9 KiB [emitted] [immutable]
asset c98f03fbb3549a9685f2.js 1.9 KiB [emitted] [immutable]
asset 4437b7a806fda9652d78.js 1010 bytes [emitted] [immutable]
asset 9711883e11bdd4d550ff.js 1010 bytes [emitted] [immutable]
asset e0332efe5dd181ffeff5.js 1010 bytes [emitted] [immutable]
Entrypoint main 11.6 KiB = d665fde544fa85a0a6de.js
chunk (runtime: main) c0e0ed061413e64a66c5.js 1.76 KiB [rendered] [recorded] aggressive splitted
asset 0fee456e1dc719aa6022.js 11.6 KiB [emitted] [immutable] (name: main)
asset 3fc6535262efa7e4fa3b.js 1.91 KiB [emitted] [immutable]
asset 56815935c535fbc0e462.js 1.91 KiB [emitted] [immutable]
asset 2b8c8882bd4326b27013.js 1.9 KiB [emitted] [immutable]
asset 7fcee6253a8c1f9fd714.js 1.9 KiB [emitted] [immutable]
asset 5bc77880fdc9e2bf09ee.js 1.9 KiB [emitted] [immutable]
asset abdab88d0dc9ea1a41ab.js 1.9 KiB [emitted] [immutable]
asset d0fbb9e0f5d00615a52e.js 1.9 KiB [emitted] [immutable]
asset f79c60cc3faba968a476.js 1.9 KiB [emitted] [immutable]
asset 7294786e49319a98f5af.js 1010 bytes [emitted] [immutable]
asset c5861419d7f3f6ea6c19.js 1010 bytes [emitted] [immutable]
asset f897ac9956540163d002.js 1010 bytes [emitted] [immutable]
Entrypoint main 11.6 KiB = 0fee456e1dc719aa6022.js
chunk (runtime: main) 5bc77880fdc9e2bf09ee.js 1.76 KiB [rendered] [recorded] aggressive splitted
> ./c ./d ./e ./index.js 3:0-30
./c.js 899 bytes [built] [code generated]
./d.js 899 bytes [built] [code generated]
chunk (runtime: main) d665fde544fa85a0a6de.js (main) 248 bytes (javascript) 6.32 KiB (runtime) [entry] [rendered]
chunk (runtime: main) 0fee456e1dc719aa6022.js (main) 248 bytes (javascript) 6.32 KiB (runtime) [entry] [rendered]
> ./index main
runtime modules 6.32 KiB 7 modules
./index.js 248 bytes [built] [code generated]
chunk (runtime: main) b28b42175852a350ae55.js 1.76 KiB [rendered]
chunk (runtime: main) 3fc6535262efa7e4fa3b.js 1.76 KiB [rendered]
> ./f ./g ./h ./i ./j ./k ./index.js 4:0-51
./j.js 901 bytes [built] [code generated]
./k.js 899 bytes [built] [code generated]
chunk (runtime: main) e0332efe5dd181ffeff5.js 899 bytes [rendered]
chunk (runtime: main) f897ac9956540163d002.js 899 bytes [rendered]
> ./c ./d ./e ./index.js 3:0-30
> ./b ./d ./e ./f ./g ./index.js 5:0-44
./e.js 899 bytes [built] [code generated]
chunk (runtime: main) cdb7e2808114a2288d95.js 1.76 KiB [rendered] [recorded] aggressive splitted
chunk (runtime: main) 7fcee6253a8c1f9fd714.js 1.76 KiB [rendered] [recorded] aggressive splitted
> ./b ./d ./e ./f ./g ./h ./i ./j ./k ./index.js 6:0-72
./i.js 899 bytes [built] [code generated]
./j.js 901 bytes [built] [code generated]
chunk (runtime: main) 5dc82ad1144129efc6f0.js 1.76 KiB [rendered] [recorded] aggressive splitted
chunk (runtime: main) 56815935c535fbc0e462.js 1.76 KiB [rendered] [recorded] aggressive splitted
> ./b ./d ./e ./f ./g ./h ./i ./j ./k ./index.js 6:0-72
./e.js 899 bytes [built] [code generated]
./h.js 899 bytes [built] [code generated]
chunk (runtime: main) 73372ad6d7fbb1fb063f.js 1.76 KiB [rendered]
chunk (runtime: main) d0fbb9e0f5d00615a52e.js 1.76 KiB [rendered]
> ./b ./c ./index.js 2:0-23
./b.js 899 bytes [built] [code generated]
./c.js 899 bytes [built] [code generated]
chunk (runtime: main) c98f03fbb3549a9685f2.js 1.76 KiB [rendered] [recorded] aggressive splitted
chunk (runtime: main) f79c60cc3faba968a476.js 1.76 KiB [rendered] [recorded] aggressive splitted
> ./f ./g ./h ./i ./j ./k ./index.js 4:0-51
./h.js 899 bytes [built] [code generated]
./i.js 899 bytes [built] [code generated]
chunk (runtime: main) 6861109a893ce5c56a08.js 1.76 KiB [rendered] [recorded] aggressive splitted
chunk (runtime: main) 2b8c8882bd4326b27013.js 1.76 KiB [rendered] [recorded] aggressive splitted
> ./f ./g ./h ./i ./j ./k ./index.js 4:0-51
> ./b ./d ./e ./f ./g ./index.js 5:0-44
> ./b ./d ./e ./f ./g ./h ./i ./j ./k ./index.js 6:0-72
./f.js 899 bytes [built] [code generated]
./g.js 901 bytes [built] [code generated]
chunk (runtime: main) 9711883e11bdd4d550ff.js 899 bytes [rendered]
chunk (runtime: main) 7294786e49319a98f5af.js 899 bytes [rendered]
> ./b ./d ./e ./f ./g ./h ./i ./j ./k ./index.js 6:0-72
./k.js 899 bytes [built] [code generated]
chunk (runtime: main) 84ccadf9c4e1e366e5ef.js 1.76 KiB [rendered] [recorded] aggressive splitted
chunk (runtime: main) abdab88d0dc9ea1a41ab.js 1.76 KiB [rendered] [recorded] aggressive splitted
> ./b ./d ./e ./f ./g ./index.js 5:0-44
> ./b ./d ./e ./f ./g ./h ./i ./j ./k ./index.js 6:0-72
./b.js 899 bytes [built] [code generated]
./d.js 899 bytes [built] [code generated]
chunk (runtime: main) 4437b7a806fda9652d78.js 899 bytes [rendered]
chunk (runtime: main) c5861419d7f3f6ea6c19.js 899 bytes [rendered]
> ./a ./index.js 1:0-16
./a.js 899 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms"
@ -658,9 +658,9 @@ webpack x.x.x compiled successfully in X ms"
`;
exports[`StatsTestCases should print correct stats for commons-plugin-issue-4980 1`] = `
"asset app.cf6134c86a3764bf5541-1.js 6.24 KiB [emitted] [immutable] (name: app)
asset vendor.ebb9b6c7e5493f36bead-1.js 619 bytes [emitted] [immutable] (name: vendor) (id hint: vendor)
Entrypoint app 6.84 KiB = vendor.ebb9b6c7e5493f36bead-1.js 619 bytes app.cf6134c86a3764bf5541-1.js 6.24 KiB
"asset app.93348d48a3a36b9dfe36-1.js 6.24 KiB [emitted] [immutable] (name: app)
asset vendor.e8705eba33f92df1cf62-1.js 619 bytes [emitted] [immutable] (name: vendor) (id hint: vendor)
Entrypoint app 6.84 KiB = vendor.e8705eba33f92df1cf62-1.js 619 bytes app.93348d48a3a36b9dfe36-1.js 6.24 KiB
runtime modules 2.76 KiB 4 modules
orphan modules 118 bytes [orphan] 2 modules
cacheable modules 272 bytes
@ -668,9 +668,9 @@ cacheable modules 272 bytes
./constants.js 87 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms
asset app.089a6b1a54e28aecba11-2.js 6.26 KiB [emitted] [immutable] (name: app)
asset vendor.ebb9b6c7e5493f36bead-2.js 619 bytes [emitted] [immutable] (name: vendor) (id hint: vendor)
Entrypoint app 6.86 KiB = vendor.ebb9b6c7e5493f36bead-2.js 619 bytes app.089a6b1a54e28aecba11-2.js 6.26 KiB
asset app.7df4a486d4bfe64fb90e-2.js 6.26 KiB [emitted] [immutable] (name: app)
asset vendor.e8705eba33f92df1cf62-2.js 619 bytes [emitted] [immutable] (name: vendor) (id hint: vendor)
Entrypoint app 6.86 KiB = vendor.e8705eba33f92df1cf62-2.js 619 bytes app.7df4a486d4bfe64fb90e-2.js 6.26 KiB
runtime modules 2.76 KiB 4 modules
orphan modules 125 bytes [orphan] 2 modules
cacheable modules 279 bytes
@ -700,10 +700,10 @@ exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1`
`;
exports[`StatsTestCases should print correct stats for context-independence 1`] = `
"asset main-5247897288595e4776a8.js 10.4 KiB [emitted] [immutable] (name: main)
sourceMap main-5247897288595e4776a8.js.map 9.27 KiB [emitted] [dev] (auxiliary name: main)
asset 695-c2bff00f4dc67a034047.js 455 bytes [emitted] [immutable]
sourceMap 695-c2bff00f4dc67a034047.js.map 342 bytes [emitted] [dev]
"asset main-4aabfaa86ecfef36d9be.js 10.4 KiB [emitted] [immutable] (name: main)
sourceMap main-4aabfaa86ecfef36d9be.js.map 9.27 KiB [emitted] [dev] (auxiliary name: main)
asset 695-4dd37417c69a0af66bac.js 455 bytes [emitted] [immutable]
sourceMap 695-4dd37417c69a0af66bac.js.map 342 bytes [emitted] [dev]
runtime modules 6.3 KiB 8 modules
orphan modules 19 bytes [orphan] 1 module
cacheable modules 106 bytes
@ -711,10 +711,10 @@ cacheable modules 106 bytes
./a/chunk.js + 1 modules (in Xdir/context-independence/a) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms
asset main-5247897288595e4776a8.js 10.4 KiB [emitted] [immutable] (name: main)
sourceMap main-5247897288595e4776a8.js.map 9.27 KiB [emitted] [dev] (auxiliary name: main)
asset 695-c2bff00f4dc67a034047.js 455 bytes [emitted] [immutable]
sourceMap 695-c2bff00f4dc67a034047.js.map 342 bytes [emitted] [dev]
asset main-4aabfaa86ecfef36d9be.js 10.4 KiB [emitted] [immutable] (name: main)
sourceMap main-4aabfaa86ecfef36d9be.js.map 9.27 KiB [emitted] [dev] (auxiliary name: main)
asset 695-4dd37417c69a0af66bac.js 455 bytes [emitted] [immutable]
sourceMap 695-4dd37417c69a0af66bac.js.map 342 bytes [emitted] [dev]
runtime modules 6.3 KiB 8 modules
orphan modules 19 bytes [orphan] 1 module
cacheable modules 106 bytes
@ -722,8 +722,8 @@ cacheable modules 106 bytes
./b/chunk.js + 1 modules (in Xdir/context-independence/b) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms
asset main-7db72914ff1feab68bcc.js 11.6 KiB [emitted] [immutable] (name: main)
asset 695-853aed631cbe225eb67f.js 1.5 KiB [emitted] [immutable]
asset main-0dae7fdb1672844ee2a7.js 11.6 KiB [emitted] [immutable] (name: main)
asset 695-828eb5c7418e1b8270bb.js 1.5 KiB [emitted] [immutable]
runtime modules 6.3 KiB 8 modules
orphan modules 19 bytes [orphan] 1 module
cacheable modules 106 bytes
@ -731,8 +731,8 @@ cacheable modules 106 bytes
./a/chunk.js + 1 modules (in Xdir/context-independence/a) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms
asset main-7db72914ff1feab68bcc.js 11.6 KiB [emitted] [immutable] (name: main)
asset 695-853aed631cbe225eb67f.js 1.5 KiB [emitted] [immutable]
asset main-0dae7fdb1672844ee2a7.js 11.6 KiB [emitted] [immutable] (name: main)
asset 695-828eb5c7418e1b8270bb.js 1.5 KiB [emitted] [immutable]
runtime modules 6.3 KiB 8 modules
orphan modules 19 bytes [orphan] 1 module
cacheable modules 106 bytes
@ -740,8 +740,8 @@ cacheable modules 106 bytes
./b/chunk.js + 1 modules (in Xdir/context-independence/b) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms
asset main-f86a1a4e2fa0a24cd00a.js 11.3 KiB [emitted] [immutable] (name: main)
asset 695-c98ab195b6c00d1ace5b.js 1.01 KiB [emitted] [immutable]
asset main-ae1f2717fd5d1cb5ac68.js 11.3 KiB [emitted] [immutable] (name: main)
asset 695-ace208366ce0ce2556ef.js 1.01 KiB [emitted] [immutable]
runtime modules 6.3 KiB 8 modules
orphan modules 19 bytes [orphan] 1 module
cacheable modules 106 bytes
@ -749,8 +749,8 @@ cacheable modules 106 bytes
./a/chunk.js + 1 modules (in Xdir/context-independence/a) 66 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms
asset main-f86a1a4e2fa0a24cd00a.js 11.3 KiB [emitted] [immutable] (name: main)
asset 695-c98ab195b6c00d1ace5b.js 1.01 KiB [emitted] [immutable]
asset main-ae1f2717fd5d1cb5ac68.js 11.3 KiB [emitted] [immutable] (name: main)
asset 695-ace208366ce0ce2556ef.js 1.01 KiB [emitted] [immutable]
runtime modules 6.3 KiB 8 modules
orphan modules 19 bytes [orphan] 1 module
cacheable modules 106 bytes
@ -1135,19 +1135,19 @@ webpack x.x.x compiled with 3 warnings"
`;
exports[`StatsTestCases should print correct stats for issue-7577 1`] = `
"asset a-runtime~main-22e869de0f27db81f962.js 4.92 KiB [emitted] [immutable] (name: runtime~main)
asset a-main-ef61ff9b5cacf52087be.js 405 bytes [emitted] [immutable] (name: main)
asset a-all-a_js-5af81d3b60f9e87be69d.js 140 bytes [emitted] [immutable] (id hint: all)
Entrypoint main 5.46 KiB = a-runtime~main-22e869de0f27db81f962.js 4.92 KiB a-all-a_js-5af81d3b60f9e87be69d.js 140 bytes a-main-ef61ff9b5cacf52087be.js 405 bytes
"asset a-runtime~main-b4ac9ffbda8affb59dc2.js 4.92 KiB [emitted] [immutable] (name: runtime~main)
asset a-main-5b238661c342d3c63636.js 405 bytes [emitted] [immutable] (name: main)
asset a-all-a_js-52fb35892f514e05c220.js 140 bytes [emitted] [immutable] (id hint: all)
Entrypoint main 5.46 KiB = a-runtime~main-b4ac9ffbda8affb59dc2.js 4.92 KiB a-all-a_js-52fb35892f514e05c220.js 140 bytes a-main-5b238661c342d3c63636.js 405 bytes
runtime modules 2.47 KiB 3 modules
./a.js 18 bytes [built] [code generated]
webpack x.x.x compiled successfully in X ms
asset b-runtime~main-54fb57393ddb58c14c12.js 5.86 KiB [emitted] [immutable] (name: runtime~main)
asset b-all-b_js-937030672c8a31cdd3e9.js 475 bytes [emitted] [immutable] (id hint: all)
asset b-main-132fd6da6e6e6728c990.js 438 bytes [emitted] [immutable] (name: main)
asset b-vendors-node_modules_vendor_js-499179597d8c965dd5e0.js 185 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 6.93 KiB = b-runtime~main-54fb57393ddb58c14c12.js 5.86 KiB b-vendors-node_modules_vendor_js-499179597d8c965dd5e0.js 185 bytes b-all-b_js-937030672c8a31cdd3e9.js 475 bytes b-main-132fd6da6e6e6728c990.js 438 bytes
asset b-runtime~main-59100c6ccf028a3d60ba.js 5.86 KiB [emitted] [immutable] (name: runtime~main)
asset b-all-b_js-1ccae3120aa8d62e9877.js 475 bytes [emitted] [immutable] (id hint: all)
asset b-main-503688157f1b1be3d9ac.js 438 bytes [emitted] [immutable] (name: main)
asset b-vendors-node_modules_vendor_js-7320f018dbab7e34ead5.js 185 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 6.93 KiB = b-runtime~main-59100c6ccf028a3d60ba.js 5.86 KiB b-vendors-node_modules_vendor_js-7320f018dbab7e34ead5.js 185 bytes b-all-b_js-1ccae3120aa8d62e9877.js 475 bytes b-main-503688157f1b1be3d9ac.js 438 bytes
runtime modules 3.03 KiB 5 modules
cacheable modules 40 bytes
./b.js 17 bytes [built] [code generated]
@ -1155,12 +1155,12 @@ cacheable modules 40 bytes
webpack x.x.x compiled successfully in X ms
assets by chunk 895 bytes (id hint: all)
asset c-all-b_js-db80d48a68188f12c60f.js 502 bytes [emitted] [immutable] (id hint: all)
asset c-all-c_js-5a3e032792662f68ffa4.js 393 bytes [emitted] [immutable] (id hint: all)
asset c-runtime~main-0f5e3c54060a84caba03.js 13.6 KiB [emitted] [immutable] (name: runtime~main)
asset c-main-67570433584a09b646bc.js 680 bytes [emitted] [immutable] (name: main)
asset c-vendors-node_modules_vendor_js-499179597d8c965dd5e0.js 185 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 14.6 KiB = c-runtime~main-0f5e3c54060a84caba03.js 13.6 KiB c-all-c_js-5a3e032792662f68ffa4.js 393 bytes c-main-67570433584a09b646bc.js 680 bytes
asset c-all-b_js-d2d64fdaadbf1936503b.js 502 bytes [emitted] [immutable] (id hint: all)
asset c-all-c_js-0552c7cbb8c1a12b6b9c.js 393 bytes [emitted] [immutable] (id hint: all)
asset c-runtime~main-61b507ed6234b5bfc102.js 13.6 KiB [emitted] [immutable] (name: runtime~main)
asset c-main-463838c803f48fe97bb6.js 680 bytes [emitted] [immutable] (name: main)
asset c-vendors-node_modules_vendor_js-7320f018dbab7e34ead5.js 185 bytes [emitted] [immutable] (id hint: vendors)
Entrypoint main 14.6 KiB = c-runtime~main-61b507ed6234b5bfc102.js 13.6 KiB c-all-c_js-0552c7cbb8c1a12b6b9c.js 393 bytes c-main-463838c803f48fe97bb6.js 680 bytes
runtime modules 8.67 KiB 13 modules
cacheable modules 101 bytes
./c.js 61 bytes [built] [code generated]
@ -2084,7 +2084,7 @@ LOG from webpack.FileSystemInfo
Directory info in cache: 0 timestamps 0 hashes 0 timestamp hash combinations
Managed items info in cache: 0 items
1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (104834baf2c563b13931)"
1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (c7a4e3bf1797f14ec5d7)"
`;
exports[`StatsTestCases should print correct stats for preset-errors-only 1`] = `""`;
@ -2457,7 +2457,7 @@ LOG from webpack.FileSystemInfo
Directory info in cache: 0 timestamps 0 hashes 0 timestamp hash combinations
Managed items info in cache: 0 items
1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (104834baf2c563b13931)"
1970-04-20 12:42:42: webpack x.x.x compiled successfully in X ms (c7a4e3bf1797f14ec5d7)"
`;
exports[`StatsTestCases should print correct stats for real-content-hash 1`] = `