MCPcopy
hub / github.com/vitejs/vite / throwProcessingError

Function throwProcessingError

packages/vite/src/node/plugins/optimizedDeps.ts:117–126  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

115}
116
117function throwProcessingError(id: string): never {
118 const err: any = new Error(
119 `Something unexpected happened while optimizing "${id}". ` +
120 `The current page should have reloaded by now`,
121 )
122 err.code = ERR_OPTIMIZE_DEPS_PROCESSING_ERROR
123 // This error will be caught by the transform middleware that will
124 // send a 504 status code request timeout
125 throw err
126}
127
128export function throwOutdatedRequest(id: string): never {
129 const err: any = new Error(

Callers 1

loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected