| | |
| | | |
| | | class URLDependency extends ModuleDependency { |
| | | /** |
| | | * Creates an instance of URLDependency. |
| | | * @param {string} request request |
| | | * @param {Range} range range of the arguments of new URL( |> ... <| ) |
| | | * @param {Range} outerRange range of the full |> new URL(...) <| |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns function to determine if the connection is active. |
| | | * @param {ModuleGraph} moduleGraph module graph |
| | | * @returns {null | false | GetConditionFn} function to determine if the connection is active |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates an ignored module. |
| | | * @param {string} context context directory |
| | | * @returns {Module} ignored module |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @param {ObjectSerializerContext} context context |
| | | */ |
| | | serialize(context) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @param {ObjectDeserializerContext} context context |
| | | */ |
| | | deserialize(context) { |
| | |
| | | ModuleDependency.Template |
| | | ) { |
| | | /** |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Dependency} dependency the dependency for which the template should be applied |
| | | * @param {ReplaceSource} source the current replace source which can be modified |
| | | * @param {DependencyTemplateContext} templateContext the context object |