| 150 | * Default path resolver (returns path as-is) |
| 151 | */ |
| 152 | export class DefaultPathResolver implements IPathResolver { |
| 153 | resolve(path: string): string { |
| 154 | // 如果已经是 URL,直接返回 |
| 155 | if (path.startsWith('http://') || |
| 156 | path.startsWith('https://') || |
| 157 | path.startsWith('data:') || |
| 158 | path.startsWith('blob:')) { |
| 159 | return path; |
| 160 | } |
| 161 | return path; |
| 162 | } |
| 163 | } |
nothing calls this directly
no outgoing calls
no test coverage detected