Skip to content

Commit 6fbedc9

Browse files
committed
Document exotic module filename behavior
1 parent e4d6163 commit 6fbedc9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pages/docs/manual/latest/module.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,17 @@ module MakeSet: MakeSetType = (Item: Comparable) => {
517517

518518
</CodeTab>
519519

520+
## Exotic Module Filenames
521+
522+
**Since 8.3**
523+
524+
It is possible to use non-conventional characters in your filenames (which is sometimes needed for specific JS frameworks). Here are some examples:
525+
526+
- `src/Button.ios.res`
527+
- `pages/[id].res`
528+
529+
Please note that modules with an exotic filename will not be accessible from other ReScript modules.
530+
520531
## Tips & Tricks
521532

522533
Modules and functors are at a different "layer" of language than the rest (functions, let bindings, data structures, etc.). For example, you can't easily pass them into a tuple or record. Use them judiciously, if ever! Lots of times, just a record or a function is enough.

0 commit comments

Comments
 (0)