mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
9d09dfe539
Co-authored-by: jamsinclair <jamsinclair@users.noreply.github.com> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
747 B
747 B
Worker Options
Options related to Web Workers.
worker.format
- Type:
'es' | 'iife'
- Default:
'iife'
Output format for worker bundle.
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, modifying config.worker
options in the config
hook will be ignored.
worker.rollupOptions
- Type:
RollupOptions
Rollup options to build worker bundle.