aboutsummaryrefslogtreecommitdiff
path: root/docs/runtime/modules.md
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-30 15:52:21 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-30 15:52:21 -0700
commit7376ae6980b1cd5fc39ad90c6d17b328bdc7cf0a (patch)
treeb74c84a1e261a10472d5be1328bc400cc6321cb1 /docs/runtime/modules.md
parent148c6e7551f5b8af267dbe37a9275f720b3b93e8 (diff)
downloadbun-7376ae6980b1cd5fc39ad90c6d17b328bdc7cf0a.tar.gz
bun-7376ae6980b1cd5fc39ad90c6d17b328bdc7cf0a.tar.zst
bun-7376ae6980b1cd5fc39ad90c6d17b328bdc7cf0a.zip
Update modules.md
Diffstat (limited to '')
-rw-r--r--docs/runtime/modules.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/runtime/modules.md b/docs/runtime/modules.md
index 5ba4956ce..32bd78cc3 100644
--- a/docs/runtime/modules.md
+++ b/docs/runtime/modules.md
@@ -159,7 +159,7 @@ If you aren't a TypeScript user, you can create a [`jsconfig.json`](https://code
## CommonJS
-Bun has native support for CommonJS modules (added in Bun v0.6.5).
+Bun has native support for CommonJS modules (added in Bun v0.6.5). ES Modules are the recommended module format, but CommonJS modules are still widely used in the Node.js ecosystem. Bun supports both module formats, so that existing CommonJS packages can be used.
In Bun's JavaScript runtime, `require` can be used by both ES Modules and CommonJS modules.