* @param {Compilation} compilation compilation * @private
(compilation)
| 1746 | * @private |
| 1747 | */ |
| 1748 | _initBuildHash(compilation) { |
| 1749 | const hash = createHash(compilation.outputOptions.hashFunction); |
| 1750 | if (this._source) { |
| 1751 | hash.update(class="st">"source"); |
| 1752 | this._source.updateHash(hash); |
| 1753 | } |
| 1754 | hash.update(class="st">"meta"); |
| 1755 | hash.update(JSON.stringify(this.buildMeta)); |
| 1756 | /** @type {NormalModuleBuildInfo} */ |
| 1757 | (this.buildInfo).hash = hash.digest(class="st">"hex"); |
| 1758 | } |
| 1759 | |
| 1760 | /** |
| 1761 | * Builds the module using the provided compilation context. |
no test coverage detected