Skip to content

Commit 307757b

Browse files
committed
Correct cmj reference
1 parent 4a9f35e commit 307757b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

_blogposts/2025-11-11-introducing-rewatch.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ Before we dive into ReWatch's innovations, it's worth understanding a key concep
4646
```
4747
Button.res (your source code)
4848
↓ compiler
49-
├─ Button.mjs # JavaScript code that runs in the browser
50-
├─ Button.cmi # The module's public interface
51-
└─ Button.cmj # Compiled module with implementation details
49+
├─ Button.mjs # JavaScript output
50+
├─ Button.cmi # Module's public API signature
51+
├─ Button.cmt # Typed AST
52+
└─ Button.cmj # Optimization metadata
5253
```
5354

5455
Think of the `.cmi` file as a contract or a table of contents for your module. It describes what other modules can see and import from your module. It contains your type definitions and function signatures, but only the public ones.

0 commit comments

Comments
 (0)