main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
983 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 | /** @typedef {import("../javascript/JavascriptParser").Range} Range */
|
---|
13 |
|
---|
14 | class ImportMetaHotAcceptDependency extends ModuleDependency {
|
---|
15 | /**
|
---|
16 | * @param {string} request the request string
|
---|
17 | * @param {Range} range location in source code
|
---|
18 | */
|
---|
19 | constructor(request, range) {
|
---|
20 | super(request);
|
---|
21 | this.range = range;
|
---|
22 | this.weak = true;
|
---|
23 | }
|
---|
24 |
|
---|
25 | get type() {
|
---|
26 | return "import.meta.webpackHot.accept";
|
---|
27 | }
|
---|
28 |
|
---|
29 | get category() {
|
---|
30 | return "esm";
|
---|
31 | }
|
---|
32 | }
|
---|
33 |
|
---|
34 | makeSerializable(
|
---|
35 | ImportMetaHotAcceptDependency,
|
---|
36 | "webpack/lib/dependencies/ImportMetaHotAcceptDependency"
|
---|
37 | );
|
---|
38 |
|
---|
39 | ImportMetaHotAcceptDependency.Template = ModuleDependencyTemplateAsId;
|
---|
40 |
|
---|
41 | module.exports = ImportMetaHotAcceptDependency;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.