()
| 1 | import JSZip from "jszip"; |
| 2 | |
| 3 | async function fetchD3(): Promise<string> { |
| 4 | const res = await fetch('https://cdn.jsdelivr.net/npm/d3@7/dist/d3.min.js'); |
| 5 | if (!res.ok) throw new Error('Failed to fetch d3 for bundling'); |
| 6 | return res.text(); |
| 7 | } |
| 8 | |
| 9 | interface GraphNode { |
| 10 | id: string | number; |
no test coverage detected