(spec: string)
| 12 | const NODE_BUILTINS = new Set(builtinModules) |
| 13 | |
| 14 | function bareSpecifier(spec: string): string | undefined { |
| 15 | if (spec.startsWith('.') || spec.startsWith('/')) return |
| 16 | if (spec.startsWith('node:')) return |
| 17 | if (NODE_BUILTINS.has(spec)) return |
| 18 | const parts = spec.split('/') |
| 19 | if (spec.startsWith('@')) { |
| 20 | if (parts.length < 2) return |
| 21 | return parts.slice(0, 2).join('/') |
| 22 | } |
| 23 | return parts[0] |
| 24 | } |
| 25 | |
| 26 | function checkBundle( |
| 27 | bundlePath: string, |