diff --git a/docs/bundler/index.md b/docs/bundler/index.md index ebbfd4b4a2..a4f6b9d39c 100644 --- a/docs/bundler/index.md +++ b/docs/bundler/index.md @@ -390,7 +390,62 @@ $ bun build ./index.tsx --outdir ./out --format cjs #### `format: "iife"` - IIFE -TODO: document IIFE once we support globalNames. +Wraps the bundle in an Immediately Invoked Function Expression (IIFE). This format is useful for creating bundles that can be directly included in HTML `