Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
785 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | Author Tobias Koppers @sokra
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | "use strict";
|
---|
| 7 |
|
---|
| 8 | const makeSerializable = require("../util/makeSerializable");
|
---|
| 9 | const ModuleDependency = require("./ModuleDependency");
|
---|
| 10 | const ModuleDependencyTemplateAsId = require("./ModuleDependencyTemplateAsId");
|
---|
| 11 |
|
---|
| 12 | class 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 |
|
---|
| 29 | makeSerializable(
|
---|
| 30 | ModuleHotDeclineDependency,
|
---|
| 31 | "webpack/lib/dependencies/ModuleHotDeclineDependency"
|
---|
| 32 | );
|
---|
| 33 |
|
---|
| 34 | ModuleHotDeclineDependency.Template = ModuleDependencyTemplateAsId;
|
---|
| 35 |
|
---|
| 36 | module.exports = ModuleHotDeclineDependency;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.