|
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:
877 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
|---|
| 3 | Author Tobias Koppers @sokra
|
|---|
| 4 | */
|
|---|
| 5 |
|
|---|
| 6 | "use strict";
|
|---|
| 7 |
|
|---|
| 8 | const ModuleDependency = require("./ModuleDependency");
|
|---|
| 9 |
|
|---|
| 10 | /** @typedef {import("../Dependency").GetConditionFn} GetConditionFn */
|
|---|
| 11 | /** @typedef {import("../ModuleGraph")} ModuleGraph */
|
|---|
| 12 |
|
|---|
| 13 | class LoaderDependency extends ModuleDependency {
|
|---|
| 14 | /**
|
|---|
| 15 | * Creates an instance of LoaderDependency.
|
|---|
| 16 | * @param {string} request request string
|
|---|
| 17 | */
|
|---|
| 18 | constructor(request) {
|
|---|
| 19 | super(request);
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | get type() {
|
|---|
| 23 | return "loader";
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | get category() {
|
|---|
| 27 | return "loader";
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | /**
|
|---|
| 31 | * Returns function to determine if the connection is active.
|
|---|
| 32 | * @param {ModuleGraph} moduleGraph module graph
|
|---|
| 33 | * @returns {null | false | GetConditionFn} function to determine if the connection is active
|
|---|
| 34 | */
|
|---|
| 35 | getCondition(moduleGraph) {
|
|---|
| 36 | return false;
|
|---|
| 37 | }
|
|---|
| 38 | }
|
|---|
| 39 |
|
|---|
| 40 | module.exports = LoaderDependency;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.