We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 296542e commit c328c65Copy full SHA for c328c65
lib/JavascriptModulesPlugin.js
@@ -129,10 +129,12 @@ class JavascriptModulesPlugin {
129
);
130
compilation.hooks.contentHash.tap("JavascriptModulesPlugin", chunk => {
131
const outputOptions = compilation.outputOptions;
132
- const hashFunction = outputOptions.hashFunction;
133
- const hashSalt = outputOptions.hashSalt;
134
- const hashDigest = outputOptions.hashDigest;
135
- const hashDigestLength = outputOptions.hashDigestLength;
+ const {
+ hashSalt,
+ hashDigest,
+ hashDigestLength,
136
+ hashFunction
137
+ } = outputOptions;
138
const hash = createHash(hashFunction);
139
if (hashSalt) hash.update(hashSalt);
140
const template = chunk.hasRuntime()
0 commit comments