Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Oct 1, 2024
1 parent 68b910c commit e348fef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/bundler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,11 @@ Depending on the target, Bun will apply different module resolution rules and op

Specifies the module format to be used in the generated bundles.

Bun defaults to `"esm"`, and provides experimental support for `"cjs"` and `"iife"`.

#### `format: "esm"` - ES Module

Bun defaults to `"esm"`, and provides experimental support for `"cjs"` and `"iife"`.
This is the default format, which supports ES Module syntax including top-level `await`, import.meta, and more.

{% codetabs %}

Expand Down

0 comments on commit e348fef

Please sign in to comment.