From e348fef1c6260966147e4c27e89d0cc19d44cff0 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 1 Oct 2024 04:26:19 -0700 Subject: [PATCH] Update index.md --- docs/bundler/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/bundler/index.md b/docs/bundler/index.md index 27413de0b943ea..605984f0516572 100644 --- a/docs/bundler/index.md +++ b/docs/bundler/index.md @@ -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 %}