1 |
|
2 |
|
3 |
|
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 ImportMetaHotDeclineDependency 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 "import.meta.webpackHot.decline";
|
22 | }
|
23 |
|
24 | get category() {
|
25 | return "esm";
|
26 | }
|
27 | }
|
28 |
|
29 | makeSerializable(
|
30 | ImportMetaHotDeclineDependency,
|
31 | "webpack/lib/dependencies/ImportMetaHotDeclineDependency"
|
32 | );
|
33 |
|
34 | ImportMetaHotDeclineDependency.Template = ModuleDependencyTemplateAsId;
|
35 |
|
36 | module.exports = ImportMetaHotDeclineDependency;
|