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:
11
node_modules/webpack/lib/ids/HashedModuleIdsPlugin.js
generated
vendored
11
node_modules/webpack/lib/ids/HashedModuleIdsPlugin.js
generated
vendored
@@ -53,7 +53,6 @@ class HashedModuleIdsPlugin {
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(compiler) {
|
||||
const options = this.options;
|
||||
compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
|
||||
compilation.hooks.moduleIds.tap(PLUGIN_NAME, () => {
|
||||
const chunkGraph = compilation.chunkGraph;
|
||||
@@ -67,14 +66,10 @@ class HashedModuleIdsPlugin {
|
||||
);
|
||||
for (const module of modulesInNaturalOrder) {
|
||||
const ident = getFullModuleName(module, context, compiler.root);
|
||||
const hash = createHash(
|
||||
/** @type {NonNullable<HashedModuleIdsPluginOptions["hashFunction"]>} */ (
|
||||
options.hashFunction
|
||||
)
|
||||
);
|
||||
const hash = createHash(this.options.hashFunction);
|
||||
hash.update(ident || "");
|
||||
const hashId = hash.digest(options.hashDigest);
|
||||
let len = options.hashDigestLength;
|
||||
const hashId = hash.digest(this.options.hashDigest);
|
||||
let len = this.options.hashDigestLength;
|
||||
while (usedIds.has(hashId.slice(0, len))) {
|
||||
/** @type {number} */ (len)++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user