2013-10-28 23:21:29 +08:00
|
|
|
/*
|
|
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
|
|
Author Tobias Koppers @sokra
|
|
|
|
*/
|
2018-07-30 23:08:51 +08:00
|
|
|
|
2017-01-06 01:59:31 +08:00
|
|
|
"use strict";
|
2018-07-30 23:08:51 +08:00
|
|
|
|
2017-01-06 01:59:31 +08:00
|
|
|
const ModuleDependency = require("./ModuleDependency");
|
2013-10-28 23:21:29 +08:00
|
|
|
|
2024-02-22 22:36:36 +08:00
|
|
|
/** @typedef {import("../Dependency").GetConditionFn} GetConditionFn */
|
2022-04-15 18:48:17 +08:00
|
|
|
/** @typedef {import("../ModuleGraph")} ModuleGraph */
|
|
|
|
|
2017-01-06 01:59:31 +08:00
|
|
|
class LoaderDependency extends ModuleDependency {
|
2018-06-25 16:09:39 +08:00
|
|
|
/**
|
|
|
|
* @param {string} request request string
|
|
|
|
*/
|
2017-01-06 01:59:31 +08:00
|
|
|
constructor(request) {
|
|
|
|
super(request);
|
|
|
|
}
|
|
|
|
|
|
|
|
get type() {
|
|
|
|
return "loader";
|
|
|
|
}
|
2020-06-18 05:03:02 +08:00
|
|
|
|
|
|
|
get category() {
|
|
|
|
return "loader";
|
|
|
|
}
|
2022-04-15 18:48:17 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {ModuleGraph} moduleGraph module graph
|
2024-02-22 22:20:17 +08:00
|
|
|
* @returns {null | false | GetConditionFn} function to determine if the connection is active
|
2022-04-15 18:48:17 +08:00
|
|
|
*/
|
|
|
|
getCondition(moduleGraph) {
|
|
|
|
return false;
|
|
|
|
}
|
2013-10-28 23:21:29 +08:00
|
|
|
}
|
|
|
|
|
2017-01-06 01:59:31 +08:00
|
|
|
module.exports = LoaderDependency;
|