Presets
Presets are option-transformer functions that set sensible defaults for a specific target platform. Pass a preset's return value as your plugin options to avoid manually configuring every option.
Currently available for Vite via the /presets entry point.
Cloudflare Workers
This preset can be used when building for Cloudflare Workers.
vite.config.ts
It is possible to override the preset options:
vite.config.ts