You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _blogposts/2025-11-11-introducing-rewatch.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,10 @@ Before we dive into ReWatch's innovations, it's worth understanding a key concep
46
46
```
47
47
Button.res (your source code)
48
48
↓ 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
52
53
```
53
54
54
55
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.