( chunk, chunkGraph, context, associatedObjectForCache )
| 203 | * @returns {string} full chunk name |
| 204 | */ |
| 205 | const getFullChunkName = ( |
| 206 | chunk, |
| 207 | chunkGraph, |
| 208 | context, |
| 209 | associatedObjectForCache |
| 210 | ) => { |
| 211 | if (chunk.name) return chunk.name; |
| 212 | const modules = chunkGraph.getChunkRootModules(chunk); |
| 213 | const fullModuleNames = modules.map((m) => |
| 214 | makePathsRelative(context, m.identifier(), associatedObjectForCache) |
| 215 | ); |
| 216 | return fullModuleNames.join(); |
| 217 | }; |
| 218 | |
| 219 | /** |
| 220 | * Adds to map of items. |
no test coverage detected