feat: refactoring project
This commit is contained in:
6
node_modules/webpack/lib/ids/DeterministicChunkIdsPlugin.js
generated
vendored
6
node_modules/webpack/lib/ids/DeterministicChunkIdsPlugin.js
generated
vendored
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user