(manifest: VendorManifest)
| 90 | } |
| 91 | |
| 92 | function getFlattenedManifestMap(manifest: VendorManifest): Map<string, string> { |
| 93 | const map = new Map<string, string>(); |
| 94 | const mods = Object.keys(manifest.modules || {}); |
| 95 | for (const canonical of mods) { |
| 96 | const flat = canonical.replace(/\./g, '__').replace(/\//g, '_'); |
| 97 | map.set(flat, canonical); |
| 98 | const alias = (manifest.aliases as any)?.[canonical]; |
| 99 | if (alias) { |
| 100 | const aliasFlat = String(alias).replace(/\./g, '__').replace(/\//g, '_'); |
| 101 | map.set(aliasFlat, canonical); |
| 102 | } |
| 103 | } |
| 104 | return map; |
| 105 | } |
| 106 | |
| 107 | // NativeScript module detectors |
| 108 | function isCoreGlobalsReference(spec: string): boolean { |
no test coverage detected