feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

View File

@@ -51,9 +51,7 @@ class DeterministicChunkIdsPlugin {
const usedIds = getUsedChunkIds(compilation);
assignDeterministicIds(
Array.from(chunks).filter(chunk => {
return chunk.id === null;
}),
Array.from(chunks).filter(chunk => chunk.id === null),
chunk =>
getFullChunkName(chunk, chunkGraph, context, compiler.root),
compareNatural,
@@ -65,7 +63,7 @@ class DeterministicChunkIdsPlugin {
chunk.ids = [id];
return true;
},
[Math.pow(10, maxLength)],
[10 ** maxLength],
10,
usedIds.size
);