mirror of
https://github.com/hanzoai/vite.git
synced 2026-10-30 19:36:16 +00:00
546 B
546 B
Worker Options
Options related to Web Workers.
worker.format
- Type:
'es' | 'iife' - Default:
iife
Output format for worker bundle.
worker.plugins
- Type:
(Plugin | Plugin[])[]
Vite plugins that apply to worker bundle. Note that config.plugins does not apply to workers, it should be configured here instead.
worker.rollupOptions
- Type:
RollupOptions
Rollup options to build worker bundle.