* Returns the path used when matching this module against rule conditions. * @returns {NameForCondition | null} absolute path which should be used for condition matching (usually the resource path)
()
| 988 | * @returns {NameForCondition | null} absolute path which should be used for condition matching (usually the resource path) |
| 989 | */ |
| 990 | nameForCondition() { |
| 991 | const resource = /** @type {string} */ (this.getResource()); |
| 992 | const idx = resource.indexOf("?"); |
| 993 | if (idx >= 0) return resource.slice(0, idx); |
| 994 | return resource; |
| 995 | } |
| 996 | |
| 997 | /** |
| 998 | * Assuming this module is in the cache. Update the (cached) module with |
nothing calls this directly
no test coverage detected