Options related to Web Workers.
- Type:
'es' | 'iife'
- Default:
'iife'
Output format for worker bundle.
- Type:
(Plugin | Plugin[])[]
Vite plugins that apply to worker bundle. Note that config.plugins only applies to workers in dev, it should be configured here instead for build.
- Type:
RollupOptions
Rollup options to build worker bundle.