source: imaps-frontend/node_modules/webpack/lib/dependencies/LoaderImportDependency.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • 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 Tobias Koppers @sokra
4*/
5
6"use strict";
7
8const ModuleDependency = require("./ModuleDependency");
9
10/** @typedef {import("../Dependency").GetConditionFn} GetConditionFn */
11/** @typedef {import("../ModuleGraph")} ModuleGraph */
12/** @typedef {import("../ModuleGraphConnection")} ModuleGraphConnection */
13/** @typedef {import("../ModuleGraphConnection").ConnectionState} ConnectionState */
14/** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */
15
16class LoaderImportDependency extends ModuleDependency {
17 /**
18 * @param {string} request request string
19 */
20 constructor(request) {
21 super(request);
22 this.weak = true;
23 }
24
25 get type() {
26 return "loader import";
27 }
28
29 get category() {
30 return "loaderImport";
31 }
32
33 /**
34 * @param {ModuleGraph} moduleGraph module graph
35 * @returns {null | false | GetConditionFn} function to determine if the connection is active
36 */
37 getCondition(moduleGraph) {
38 return false;
39 }
40}
41
42module.exports = LoaderImportDependency;
Note: See TracBrowser for help on using the repository browser.