We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
createHash
1 parent a7f5288 commit 06587e5Copy full SHA for 06587e5
src/utils.js
@@ -327,8 +327,12 @@ function defaultGetLocalIdent(
327
let localIdentHash = "";
328
329
for (let tier = 0; localIdentHash.length < hashDigestLength; tier++) {
330
- // eslint-disable-next-line no-underscore-dangle
331
- const hash = loaderContext._compiler.webpack.util.createHash(hashFunction);
+ const hash = (
+ loaderContext.utils.createHash ||
332
+ // TODO remove in the next major release
333
+ // eslint-disable-next-line no-underscore-dangle
334
+ loaderContext._compiler.webpack.util.createHash
335
+ )(hashFunction);
336
337
if (hashSalt) {
338
hash.update(hashSalt);
0 commit comments