aboutsummaryrefslogtreecommitdiff
path: root/docs/runtime/modules.md
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-05-31 19:17:01 -0700
committerGravatar GitHub <noreply@github.com> 2023-05-31 19:17:01 -0700
commitcb0f76aa73f6b85667b57015a77ac39d9c78aa0b (patch)
tree949bcc466b3afbbb69a070d35d2b814f0e66be40 /docs/runtime/modules.md
parent79d7b2075e63f79ec6d1d2a904178969eb701f0b (diff)
parent110d0752f333e4c32c9226e4a94e93f18837f9c7 (diff)
downloadbun-cb0f76aa73f6b85667b57015a77ac39d9c78aa0b.tar.gz
bun-cb0f76aa73f6b85667b57015a77ac39d9c78aa0b.tar.zst
bun-cb0f76aa73f6b85667b57015a77ac39d9c78aa0b.zip
Merge branch 'main' into jarred/port
Diffstat (limited to 'docs/runtime/modules.md')
-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.