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:
7
node_modules/webpack/lib/optimize/MinChunkSizePlugin.js
generated
vendored
7
node_modules/webpack/lib/optimize/MinChunkSizePlugin.js
generated
vendored
@@ -29,6 +29,7 @@ class MinChunkSizePlugin {
|
||||
*/
|
||||
constructor(options) {
|
||||
validate(options);
|
||||
/** @type {MinChunkSizePluginOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
@@ -53,11 +54,13 @@ class MinChunkSizePlugin {
|
||||
entryChunkMultiplicator: 1
|
||||
};
|
||||
|
||||
/** @type {Map<Chunk, number>} */
|
||||
const chunkSizesMap = new Map();
|
||||
/** @type {[Chunk, Chunk][]} */
|
||||
const combinations = [];
|
||||
/** @type {Chunk[]} */
|
||||
const smallChunks = [];
|
||||
/** @type {Chunk[]} */
|
||||
const visitedChunks = [];
|
||||
for (const a of chunks) {
|
||||
// check if one of the chunks sizes is smaller than the minChunkSize
|
||||
@@ -83,8 +86,8 @@ class MinChunkSizePlugin {
|
||||
const sortedSizeFilteredExtendedPairCombinations = combinations
|
||||
.map((pair) => {
|
||||
// extend combination pairs with size and integrated size
|
||||
const a = chunkSizesMap.get(pair[0]);
|
||||
const b = chunkSizesMap.get(pair[1]);
|
||||
const a = /** @type {number} */ (chunkSizesMap.get(pair[0]));
|
||||
const b = /** @type {number} */ (chunkSizesMap.get(pair[1]));
|
||||
const ab = chunkGraph.getIntegratedChunksSize(
|
||||
pair[0],
|
||||
pair[1],
|
||||
|
||||
Reference in New Issue
Block a user