Skip to content
目次

ワーカのオプション

Web Worker に関連するオプション。

worker.format

  • 型: 'es' | 'iife'
  • デフォルト: 'iife'

ワーカバンドルの出力形式。

worker.plugins

ワーカバンドルに適用される Vite プラグイン。config.plugins は開発時のワーカのみに適用されるため、ビルドの場合はここで設定する必要があることに注意してください。

worker.rollupOptions

ワーカバンドルをビルドするための Rollup オプション。

Released under the MIT License. (34fb7763)