source: trip-planner-front/node_modules/webpack/lib/dependencies/ModuleHotDeclineDependency.js

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

initial commit

  • Property mode set to 100644
File size: 785 bytes
RevLine 
[6a3a178]1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const makeSerializable = require("../util/makeSerializable");
9const ModuleDependency = require("./ModuleDependency");
10const ModuleDependencyTemplateAsId = require("./ModuleDependencyTemplateAsId");
11
12class ModuleHotDeclineDependency extends ModuleDependency {
13 constructor(request, range) {
14 super(request);
15
16 this.range = range;
17 this.weak = true;
18 }
19
20 get type() {
21 return "module.hot.decline";
22 }
23
24 get category() {
25 return "commonjs";
26 }
27}
28
29makeSerializable(
30 ModuleHotDeclineDependency,
31 "webpack/lib/dependencies/ModuleHotDeclineDependency"
32);
33
34ModuleHotDeclineDependency.Template = ModuleDependencyTemplateAsId;
35
36module.exports = ModuleHotDeclineDependency;
Note: See TracBrowser for help on using the repository browser.