source: frontend/node_modules/webpack/lib/dependencies/ImportMetaHotDeclineDependency.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Ivan Kopeykin @vankop
4*/
5
6"use strict";
7
8const makeSerializable = require("../util/makeSerializable");
9const ModuleDependency = require("./ModuleDependency");
10const ModuleDependencyTemplateAsId = require("./ModuleDependencyTemplateAsId");
11
12/** @typedef {import("../javascript/JavascriptParser").Range} Range */
13
14class ImportMetaHotDeclineDependency extends ModuleDependency {
15 /**
16 * Creates an instance of ImportMetaHotDeclineDependency.
17 * @param {string} request the request string
18 * @param {Range} range location in source code
19 */
20 constructor(request, range) {
21 super(request);
22
23 this.range = range;
24 this.weak = true;
25 }
26
27 get type() {
28 return "import.meta.webpackHot.decline";
29 }
30
31 get category() {
32 return "esm";
33 }
34}
35
36makeSerializable(
37 ImportMetaHotDeclineDependency,
38 "webpack/lib/dependencies/ImportMetaHotDeclineDependency"
39);
40
41ImportMetaHotDeclineDependency.Template = ModuleDependencyTemplateAsId;
42
43module.exports = ImportMetaHotDeclineDependency;
Note: See TracBrowser for help on using the repository browser.