feat: refactoring project
This commit is contained in:
6
node_modules/webpack/lib/ids/HashedModuleIdsPlugin.js
generated
vendored
6
node_modules/webpack/lib/ids/HashedModuleIdsPlugin.js
generated
vendored
@@ -64,7 +64,11 @@ class HashedModuleIdsPlugin {
|
||||
);
|
||||
for (const module of modulesInNaturalOrder) {
|
||||
const ident = getFullModuleName(module, context, compiler.root);
|
||||
const hash = createHash(options.hashFunction);
|
||||
const hash = createHash(
|
||||
/** @type {NonNullable<HashedModuleIdsPluginOptions["hashFunction"]>} */ (
|
||||
options.hashFunction
|
||||
)
|
||||
);
|
||||
hash.update(ident || "");
|
||||
const hashId = /** @type {string} */ (
|
||||
hash.digest(options.hashDigest)
|
||||
|
||||
Reference in New Issue
Block a user