This documentation covers Vite 4 (old version). For the latest version, see https://vite.dev.

Skip to content
On this page

Beyond Fast

ViteConf 2023

Watch the replay!

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 worker bundle. Note that config.plugins only applies to workers in dev, it should be configured here instead for build.

worker.rollupOptions

Rollup options to build worker bundle.

Released under the MIT License. (bb576ea8)