(url: string, base: string)
| 398 | } |
| 399 | |
| 400 | function stripTrailingSlashIfNeeded(url: string, base: string): string { |
| 401 | if (base === '/') { |
| 402 | return url.replace(/\/$/, '') |
| 403 | } |
| 404 | return url |
| 405 | } |
| 406 | |
| 407 | declare module 'vite' { |
| 408 | export interface UserConfig { |