Description
Currently the Vite plugin fails whenever the input OpenAPI spec is not found, however in monorepos where the spec is generated on the fly (e.g. Hono with Zod OpenAPI) this can be problematic.
Due to this behaviour, during build heyApiPlugin() crashes the build, however the API client has been generated already during development.
A way to allow heyApiPlugin to crash silently during build would be awesome.
Description
Currently the Vite plugin fails whenever the input OpenAPI spec is not found, however in monorepos where the spec is generated on the fly (e.g. Hono with Zod OpenAPI) this can be problematic.
Due to this behaviour, during build
heyApiPlugin()crashes the build, however the API client has been generated already during development.A way to allow
heyApiPluginto crash silently during build would be awesome.