worker.format
- Type:
'es' | 'iife' - Default:
'iife'
worker.plugins
Vite plugins that apply to the worker bundles. Note that config.plugins only applies to workers in dev, it should be configured here instead for build. The function should return new plugin instances as they are used in parallel rollup worker builds. As such, modifyingconfig.worker options in the config hook will be ignored.
worker.rolldownOptions
- Type:
RolldownOptions
worker.rollupOptions
- Type:
RolldownOptions - Deprecated
worker.rolldownOptions option. Use worker.rolldownOptions option instead.