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

Skip to content
On this page

Free Online Conference

ViteConf - Oct 11

Get your ticket now!

Worker Options

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 does not apply to workers, it should be configured here instead.

worker.rollupOptions

Rollup options to build worker bundle.

Released under the MIT License. (0114c871)