Skip to content

Commit

Permalink
Remove the case-insensitive bit from the docs. (#4858)
Browse files Browse the repository at this point in the history
  • Loading branch information
farcaller authored Jul 9, 2024
1 parent 4dfbabd commit 8729640
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/runtime/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ In this case, we are importing from `./hello`, a relative path with no extension
- `./hello/index.cjs`
- `./hello/index.json`

Import paths are case-insensitive, meaning these are all valid imports:

```ts#index.ts
import { hello } from "./hello";
import { hello } from "./HELLO";
import { hello } from "./hElLo";
```

Import paths can optionally include extensions. If an extension is present, Bun will only check for a file with that exact extension.

```ts#index.ts
Expand Down

0 comments on commit 8729640

Please sign in to comment.