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:
18
node_modules/webpack/lib/HotModuleReplacementPlugin.js
generated
vendored
18
node_modules/webpack/lib/HotModuleReplacementPlugin.js
generated
vendored
@@ -75,7 +75,10 @@ const {
|
||||
/** @typedef {Record<ChunkId, string>} ChunkRuntime */
|
||||
/** @typedef {Record<ChunkId, ModuleId[]>} ChunkModuleIds */
|
||||
|
||||
/** @typedef {{ updatedChunkIds: Set<ChunkId>, removedChunkIds: Set<ChunkId>, removedModules: Set<Module>, filename: string, assetInfo: AssetInfo }} HotUpdateMainContentByRuntimeItem */
|
||||
/** @typedef {Set<ChunkId>} ChunkIds */
|
||||
/** @typedef {Set<Module>} ModuleSet */
|
||||
|
||||
/** @typedef {{ updatedChunkIds: ChunkIds, removedChunkIds: ChunkIds, removedModules: ModuleSet, filename: string, assetInfo: AssetInfo }} HotUpdateMainContentByRuntimeItem */
|
||||
/** @typedef {Map<string, HotUpdateMainContentByRuntimeItem>} HotUpdateMainContentByRuntime */
|
||||
|
||||
/** @type {WeakMap<JavascriptParser, HMRJavascriptParserHooks>} */
|
||||
@@ -517,6 +520,7 @@ class HotModuleReplacementPlugin {
|
||||
|
||||
/** @type {HotUpdateMainContentByRuntime} */
|
||||
const hotUpdateMainContentByRuntime = new Map();
|
||||
/** @type {RuntimeSpec} */
|
||||
let allOldRuntime;
|
||||
const chunkRuntime =
|
||||
/** @type {ChunkRuntime} */
|
||||
@@ -537,8 +541,11 @@ class HotModuleReplacementPlugin {
|
||||
hotUpdateMainContentByRuntime.set(
|
||||
/** @type {string} */ (runtime),
|
||||
{
|
||||
/** @type {ChunkIds} */
|
||||
updatedChunkIds: new Set(),
|
||||
/** @type {ChunkIds} */
|
||||
removedChunkIds: new Set(),
|
||||
/** @type {ModuleSet} */
|
||||
removedModules: new Set(),
|
||||
filename,
|
||||
assetInfo
|
||||
@@ -580,11 +587,17 @@ class HotModuleReplacementPlugin {
|
||||
|
||||
/** @type {ChunkId | null} */
|
||||
let chunkId;
|
||||
/** @type {undefined | Module[]} */
|
||||
let newModules;
|
||||
/** @type {undefined | RuntimeModule[]} */
|
||||
let newRuntimeModules;
|
||||
/** @type {undefined | RuntimeModule[]} */
|
||||
let newFullHashModules;
|
||||
/** @type {undefined | RuntimeModule[]} */
|
||||
let newDependentHashModules;
|
||||
/** @type {RuntimeSpec} */
|
||||
let newRuntime;
|
||||
/** @type {RuntimeSpec} */
|
||||
let removedFromRuntime;
|
||||
const currentChunk = find(
|
||||
compilation.chunks,
|
||||
@@ -775,6 +788,7 @@ class HotModuleReplacementPlugin {
|
||||
}
|
||||
}
|
||||
const completelyRemovedModulesArray = [...completelyRemovedModules];
|
||||
/** @type {Map<string, Omit<HotUpdateMainContentByRuntimeItem, "filename">>} */
|
||||
const hotUpdateMainContentByFilename = new Map();
|
||||
for (const {
|
||||
removedChunkIds,
|
||||
@@ -818,7 +832,7 @@ To fix this, make sure to include [runtime] in the output.hotUpdateMainFilename
|
||||
filename,
|
||||
{ removedChunkIds, removedModules, updatedChunkIds, assetInfo }
|
||||
] of hotUpdateMainContentByFilename) {
|
||||
/** @type {{c: ChunkId[], r: ChunkId[], m: ModuleId[], css?: {r: ChunkId[]}}} */
|
||||
/** @type {{ c: ChunkId[], r: ChunkId[], m: ModuleId[], css?: { r: ChunkId[] } }} */
|
||||
const hotUpdateMainJson = {
|
||||
c: [...updatedChunkIds],
|
||||
r: [...removedChunkIds],
|
||||
|
||||
Reference in New Issue
Block a user