mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Update modules.md
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user