(module, context, associatedObjectForCache)
| 86 | * @returns {string} short module name |
| 87 | */ |
| 88 | const getShortModuleName = (module, context, associatedObjectForCache) => { |
| 89 | const libIdent = module.libIdent({ context, associatedObjectForCache }); |
| 90 | if (libIdent) return avoidNumber(libIdent); |
| 91 | const nameForCondition = module.nameForCondition(); |
| 92 | if (nameForCondition) { |
| 93 | return avoidNumber( |
| 94 | makePathsRelative(context, nameForCondition, associatedObjectForCache) |
| 95 | ); |
| 96 | } |
| 97 | return ""; |
| 98 | }; |
| 99 | |
| 100 | /** |
| 101 | * Gets long module name. |
no test coverage detected