(id: string)
| 7 | * that may carry query strings (e.g. `?vue&type=style&lang=css`). |
| 8 | */ |
| 9 | export function parseModuleId (id: string): { pathname: string, search: string } { |
| 10 | const qIndex = id.indexOf('?') |
| 11 | if (qIndex === -1) { |
| 12 | return { pathname: id, search: '' } |
| 13 | } |
| 14 | return { pathname: id.slice(0, qIndex), search: id.slice(qIndex) } |
| 15 | } |
| 16 | |
| 17 | const NUXT_COMPONENT_RE = /[?&]nuxt_component=/ |
| 18 | const MACRO_RE = /[?&]macro=/ |
no outgoing calls
no test coverage detected
searching dependent graphs…