(it)
| 3 | import * as path from 'path'; |
| 4 | |
| 5 | const parse = (it) => { |
| 6 | if (!it) return { drizzle: false }; |
| 7 | |
| 8 | if (it.endsWith('__drizzle__')) { |
| 9 | const offset = it.startsWith('file://') ? 'file://'.length : 0; |
| 10 | const clean = it.slice(offset, -'__drizzle__'.length); |
| 11 | return { drizzle: true, clean, original: it }; |
| 12 | } |
| 13 | return { drizzle: false, clean: it }; |
| 14 | }; |
| 15 | |
| 16 | export function resolve(specifier, context, nextResolve) { |
| 17 | const { drizzle, clean } = parse(specifier); |
no outgoing calls
no test coverage detected