(rawId: string, resolved: Rollup.PartialResolvedId | null)
| 121 | } |
| 122 | |
| 123 | private resolveModule(rawId: string, resolved: Rollup.PartialResolvedId | null) { |
| 124 | const id = resolved?.id || rawId |
| 125 | const external |
| 126 | = !isAbsolute(id) || isModuleDirectory(this.options, id) ? rawId : null |
| 127 | return { |
| 128 | id, |
| 129 | fsPath: cleanUrl(id), |
| 130 | external, |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | function isModuleDirectory(config: ServerResolverOptions, path: string) { |
no test coverage detected