()
| 2257 | return ('00000000' + (h >>> 0).toString(16)).slice(-8); |
| 2258 | } |
| 2259 | function fullGraphPayload() { |
| 2260 | return { |
| 2261 | type: 'ns:hmr-full-graph', |
| 2262 | version: graphVersion, |
| 2263 | modules: Array.from(graph.values()).map((m) => ({ |
| 2264 | id: m.id, |
| 2265 | deps: m.deps, |
| 2266 | hash: m.hash, |
| 2267 | })), |
| 2268 | }; |
| 2269 | } |
| 2270 | function emitFullGraph(ws: WebSocket) { |
| 2271 | try { |
| 2272 | if (verbose) { |