aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/runtime/modules.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/runtime/modules.md b/docs/runtime/modules.md
index cfda31e3b..486ddea5f 100644
--- a/docs/runtime/modules.md
+++ b/docs/runtime/modules.md
@@ -33,15 +33,20 @@ Hello world!
In this case, we are importing from `./hello`, a relative path with no extension. **Extensioned imports are optional but supported.** To resolve this import, Bun will check for the following files in order:
-- `./hello.ts`
- `./hello.tsx`
-- `./hello.js`
+- `./hello.jsx`
+- `./hello.ts`
- `./hello.mjs`
+- `./hello.js`
- `./hello.cjs`
+- `./hello.json`
+- `./hello/index.tsx`
+- `./hello/index.jsx`
- `./hello/index.ts`
+- `./hello/index.mjs`
- `./hello/index.js`
+- `./hello/index.cjs`
- `./hello/index.json`
-- `./hello/index.mjs`
Import paths are case-insensitive, meaning these are all valid imports: