* Returns the unique identifier used to reference this module. * @returns {string} a unique identifier of the module
()
| 857 | * @returns {string} a unique identifier of the module |
| 858 | */ |
| 859 | identifier() { |
| 860 | let id = `external ${this._resolveExternalType( |
| 861 | this.externalType |
| 862 | )} ${JSON.stringify(this.request)}`; |
| 863 | const meta = /** @type {ImportDependencyMeta | undefined} */ ( |
| 864 | this.dependencyMeta |
| 865 | ); |
| 866 | if (meta) { |
| 867 | if (meta.phase) { |
| 868 | id += `|phase=${ImportPhaseUtils.stringify(meta.phase)}`; |
| 869 | } |
| 870 | if (meta.attributes) { |
| 871 | id += `|attributes=${JSON.stringify(meta.attributes)}`; |
| 872 | } |
| 873 | } |
| 874 | return id; |
| 875 | } |
| 876 | |
| 877 | /** |
| 878 | * Returns a human-readable identifier for this module. |
no test coverage detected