(spec: string)
| 82 | |
| 83 | // Minimal helpers to support vendor pre-bundle detection |
| 84 | function extractVitePrebundleId(spec: string): string | null { |
| 85 | const m = spec.match(/\.vite\/deps\/([^?]+?)\.[mc]?js/); |
| 86 | if (m) return m[1]; |
| 87 | const m2 = spec.match(/__x00__([^?]+?)\.[mc]?js/); |
| 88 | if (m2) return m2[1]; |
| 89 | return null; |
| 90 | } |
| 91 | |
| 92 | function getFlattenedManifestMap(manifest: VendorManifest): Map<string, string> { |
| 93 | const map = new Map<string, string>(); |
no test coverage detected