(error: unknown)
| 274 | } |
| 275 | |
| 276 | const reasonOf = (error: unknown): string => |
| 277 | Predicate.hasProperty(error, "cause") && error.cause instanceof Error |
| 278 | ? error.cause.message |
| 279 | : String(error) |
| 280 | |
| 281 | /** |
| 282 | * Starts the DevTools server when `vite dev` starts or restarts, stops it with |