| | |
| | | /** @typedef {import("../util/runtime").RuntimeSpec} RuntimeSpec */ |
| | | |
| | | /** |
| | | * Returns the converted path. |
| | | * @param {string[] | null} path the property path array |
| | | * @returns {string} the converted path |
| | | */ |
| | |
| | | |
| | | class ProvidedDependency extends ModuleDependency { |
| | | /** |
| | | * Creates an instance of ProvidedDependency. |
| | | * @param {string} request request |
| | | * @param {string} identifier identifier |
| | | * @param {ExportInfoName[]} ids ids |
| | |
| | | this.identifier = identifier; |
| | | this.ids = ids; |
| | | this.range = range; |
| | | /** @type {undefined | string} */ |
| | | this._hashUpdate = undefined; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * Update the hash |
| | | * Updates the hash with the data contributed by this instance. |
| | | * @param {Hash} hash hash to be updated |
| | | * @param {UpdateHashContext} context context |
| | | * @returns {void} |
| | |
| | | } |
| | | |
| | | /** |
| | | * 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) { |
| | |
| | | |
| | | class ProvidedDependencyTemplate extends 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 |