format

Pformat
Bun

Symbol

BuildConfig.format

format?: 'esm' | 'cjs' | 'iife'

Output module format. Top-level await is only supported for "esm".

Can be:

  • "esm"
  • "cjs" (experimental)
  • "iife" (experimental)