123456789101112131415161718192021222324252627282930 |
- "use strict";
- const RuntimeGlobals = require("../RuntimeGlobals");
- const RuntimeModule = require("../RuntimeModule");
- class GetFullHashRuntimeModule extends RuntimeModule {
- constructor() {
- super("getFullHash");
- this.fullHash = true;
- }
-
- generate() {
- const compilation = (this.compilation);
- const { runtimeTemplate } = compilation;
- return `${RuntimeGlobals.getFullHash} = ${runtimeTemplate.returningFunction(
- JSON.stringify(compilation.hash || "XXXX")
- )}`;
- }
- }
- module.exports = GetFullHashRuntimeModule;
|