(dir)
| 39 | const DYNAMIC_RE = /import\(\s*["'](\.[^"']+)["']\s*\)/g; |
| 40 | |
| 41 | const listChunks = (dir) => |
| 42 | readdirSync(dir, { withFileTypes: true }).flatMap((e) => |
| 43 | e.isDirectory() |
| 44 | ? listChunks(join(dir, e.name)) |
| 45 | : e.name.endsWith(".js") |
| 46 | ? [join(dir, e.name)] |
| 47 | : [], |
| 48 | ); |
| 49 | |
| 50 | const graph = new Map(); |
| 51 | for (const file of listChunks(DIST)) { |