| | |
| | | /** @typedef {{ value: string, range: Range }[]} Replaces */ |
| | | |
| | | /** |
| | | * Returns stringified regexp. |
| | | * @param {RegExp | false | null | undefined} r regexp |
| | | * @returns {string} stringified regexp |
| | | */ |
| | |
| | | |
| | | class ContextDependency extends Dependency { |
| | | /** |
| | | * Creates an instance of ContextDependency. |
| | | * @param {ContextDependencyOptions} options options for the context module |
| | | * @param {string=} context request context |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns a request context. |
| | | * @returns {string | undefined} a request context |
| | | */ |
| | | getContext() { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Could affect referencing module. |
| | | * @returns {boolean | TRANSITIVE} true, when changes to the referenced module could affect the referencing module; TRANSITIVE, when changes to the referenced module could affect referencing modules of the referencing module |
| | | */ |
| | | couldAffectReferencingModule() { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns an identifier to merge equal requests. |
| | | * @returns {string | null} an identifier to merge equal requests |
| | | */ |
| | | getResourceIdentifier() { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns warnings |
| | | * Returns warnings. |
| | | * @param {ModuleGraph} moduleGraph module graph |
| | | * @returns {WebpackError[] | null | undefined} warnings |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 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) { |