Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
812 bytes
|
Line | |
---|
1 | /*
|
---|
2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
3 | Author Ivan Kopeykin @vankop
|
---|
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;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.