|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
928 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 LoaderImportDependency extends ModuleDependency {
|
|---|
| 14 | /**
|
|---|
| 15 | * Creates an instance of LoaderImportDependency.
|
|---|
| 16 | * @param {string} request request string
|
|---|
| 17 | */
|
|---|
| 18 | constructor(request) {
|
|---|
| 19 | super(request);
|
|---|
| 20 | this.weak = true;
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | get type() {
|
|---|
| 24 | return "loader import";
|
|---|
| 25 | }
|
|---|
| 26 |
|
|---|
| 27 | get category() {
|
|---|
| 28 | return "loaderImport";
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | /**
|
|---|
| 32 | * Returns function to determine if the connection is active.
|
|---|
| 33 | * @param {ModuleGraph} moduleGraph module graph
|
|---|
| 34 | * @returns {null | false | GetConditionFn} function to determine if the connection is active
|
|---|
| 35 | */
|
|---|
| 36 | getCondition(moduleGraph) {
|
|---|
| 37 | return false;
|
|---|
| 38 | }
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | module.exports = LoaderImportDependency;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.