docs/config/worker-options.md
Unless noted, the options in this section are applied to all dev, build, and preview.
'es' | 'iife''iife'Output format for worker bundle.
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 rolldown worker builds. As such, modifying config.worker options in the config hook will be ignored.
RolldownOptionsRolldown options to build worker bundle.
RolldownOptionsThis option is an alias of worker.rolldownOptions option. Use worker.rolldownOptions option instead.