(server, id)
| 14 | } |
| 15 | |
| 16 | function getSourceById(server, id) { |
| 17 | const module = Array.from(server._stats.compilation.modules).find( |
| 18 | (m) => server._stats.compilation.chunkGraph.getModuleId(m) == id, |
| 19 | ); |
| 20 | return module.originalSource(); |
| 21 | } |
| 22 | |
| 23 | /* |
| 24 | * Middleware responsible for retrieving a generated source |
no outgoing calls
no test coverage detected