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: pages/docs/manual/latest/build-configuration.mdx
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,18 @@ You can mark your directories as dev-only (for e.g. tests). These won't be built
66
66
}
67
67
```
68
68
69
+
You can also explicitly allow which modules can be seen from outside. This feature is especially useful for library authors who want to have a single entry point for their users.
70
+
Here, the file `src/MyMainModule.res` is exposed to outside consumers, while all other files are private.
71
+
72
+
```json
73
+
{
74
+
"sources": {
75
+
"dir": "src",
76
+
"public": ["MyMainModule"]
77
+
},
78
+
}
79
+
```
80
+
69
81
## bs-dependencies, bs-dev-dependencies
70
82
71
83
List of ReScript dependencies. Just like `package.json`'s dependencies, they'll be searched in `node_modules`.
0 commit comments