(id: string)
| 126 | } |
| 127 | |
| 128 | export function throwOutdatedRequest(id: string): never { |
| 129 | const err: any = new Error( |
| 130 | `There is a new version of the pre-bundle for "${id}", ` + |
| 131 | `a page reload is going to ask for it.`, |
| 132 | ) |
| 133 | err.code = ERR_OUTDATED_OPTIMIZED_DEP |
| 134 | // This error will be caught by the transform middleware that will |
| 135 | // send a 504 status code request timeout |
| 136 | throw err |
| 137 | } |
| 138 | |
| 139 | export function throwFileNotFoundInOptimizedDep(id: string): never { |
| 140 | const err: any = new Error( |