(sub?: string)
| 1790 | let coreAliasIdx = 0; |
| 1791 | const mkAlias = () => `__NSC${coreAliasIdx++}`; |
| 1792 | const coreUrl = (sub?: string) => { |
| 1793 | const p = (sub || '').replace(/^\//, ''); |
| 1794 | return `${httpOriginSafe || ''}/ns/core` + (p ? `?p=${p}` : ''); |
| 1795 | }; |
| 1796 | // Case 1: import { A, B } from '@nativescript/core[/sub]' |
| 1797 | result = result.replace(/(^|\n)\s*import\s*\{\s*([^}]+?)\s*\}\s*from\s+["']@nativescript\/core([^"'\n]*)["'];?/g, (_m, pfx: string, names: string, sub: string) => { |
| 1798 | const alias = mkAlias(); |
no test coverage detected