source: trip-planner-front/node_modules/webpack/lib/runtime/GetFullHashRuntimeModule.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 664 bytes
RevLine 
[6a3a178]1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3*/
4
5"use strict";
6
7const RuntimeGlobals = require("../RuntimeGlobals");
8const RuntimeModule = require("../RuntimeModule");
9
10/** @typedef {import("../Compilation")} Compilation */
11
12class GetFullHashRuntimeModule extends RuntimeModule {
13 constructor() {
14 super("getFullHash");
15 this.fullHash = true;
16 }
17
18 /**
19 * @returns {string} runtime code
20 */
21 generate() {
22 const { runtimeTemplate } = this.compilation;
23 return `${RuntimeGlobals.getFullHash} = ${runtimeTemplate.returningFunction(
24 JSON.stringify(this.compilation.hash || "XXXX")
25 )}`;
26 }
27}
28
29module.exports = GetFullHashRuntimeModule;
Note: See TracBrowser for help on using the repository browser.