Skip to content

Commit 19a0a69

Browse files
committed
Add note about externals and interface files
1 parent 10dff18 commit 19a0a69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pages/docs/manual/latest/external.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ However, if you want to more rigidly bind to the JavaScript library you want, ke
7878

7979
Additionally, no extra ReScript-specific runtime is better for output readability.
8080

81+
> **Note:** do also use `external`s and the `@bs.blabla` attributes in the interface files. Otherwise the inlining won't happen.
82+
8183
## Design Decisions
8284

8385
ReScript takes interoperating with existing code very seriously. Our type system has very strong guarantees. However, such strong feature also means that, without a great interop system, it'd be very hard to gradually convert a codebase over to ReScript. Fortunately, our interop are comprehensive and cooperate very well with most existing JavaScript code.

0 commit comments

Comments
 (0)