Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
node_modules/webpack/lib/optimize/FlagIncludedChunksPlugin.js
generated
vendored
12
node_modules/webpack/lib/optimize/FlagIncludedChunksPlugin.js
generated
vendored
@@ -42,7 +42,16 @@ class FlagIncludedChunksPlugin {
|
||||
|
||||
// precalculate the modulo values for each bit
|
||||
const modulo = 1 / (1 / modulesCount) ** (1 / 31);
|
||||
const modulos = Array.from({ length: 31 }, (x, i) => (modulo ** i) | 0);
|
||||
/** @type {number[]} */
|
||||
const modulos = Array.from(
|
||||
{ length: 31 },
|
||||
/**
|
||||
* @param {number} x x
|
||||
* @param {number} i i
|
||||
* @returns {number} result
|
||||
*/
|
||||
(x, i) => (modulo ** i) | 0
|
||||
);
|
||||
|
||||
// iterate all modules to generate bit values
|
||||
let i = 0;
|
||||
@@ -72,6 +81,7 @@ class FlagIncludedChunksPlugin {
|
||||
(chunkModulesHash.get(chunkA));
|
||||
const chunkAModulesCount = chunkGraph.getNumberOfChunkModules(chunkA);
|
||||
if (chunkAModulesCount === 0) continue;
|
||||
/** @type {undefined | Module} */
|
||||
let bestModule;
|
||||
for (const module of chunkGraph.getChunkModulesIterable(chunkA)) {
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user