(map)
| 35 | * @todo This should be deleted, as it's exclusively to make TypeScript happy. |
| 36 | */ |
| 37 | export function toBabelMap (map) { |
| 38 | if (typeof map === 'string') map = JSON.parse(map); |
| 39 | return typeof map === 'object' && map ? { |
| 40 | file: '', |
| 41 | ...map, |
| 42 | version: parseInt(map.version, 10) |
| 43 | } : null; |
| 44 | } |
| 45 | |
| 46 | const DEFAULT_COREJS_VERSION = 2; |
| 47 |
no outgoing calls
no test coverage detected