| | |
| | | |
| | | class ContextElementDependency extends ModuleDependency { |
| | | /** |
| | | * Creates an instance of ContextElementDependency. |
| | | * @param {string} request request |
| | | * @param {string | undefined} userRequest user request |
| | | * @param {string | undefined} typePrefix type prefix |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns an identifier to merge equal requests. |
| | | * @returns {string | null} an identifier to merge equal requests |
| | | */ |
| | | getResourceIdentifier() { |
| | | let str = super.getResourceIdentifier(); |
| | | if (this.attributes) { |
| | | str += `|importAttributes${JSON.stringify(this.attributes)}`; |
| | | str += `|attributes${JSON.stringify(this.attributes)}`; |
| | | } |
| | | return str; |
| | | } |
| | |
| | | */ |
| | | getReferencedExports(moduleGraph, runtime) { |
| | | if (!this.referencedExports) return Dependency.EXPORTS_OBJECT_REFERENCED; |
| | | /** @type {ReferencedExports} */ |
| | | const refs = []; |
| | | for (const referencedExport of this.referencedExports) { |
| | | if ( |
| | |
| | | } |
| | | |
| | | /** |
| | | * 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) { |