-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Labels
Description
As a library author it would be beneficial to not expose internal modules. Currently the schema supports the public attribute but this yields to the following behaviour:
We have a file reactNative.re with content
module View = ViewRe;
module Style = StyleRe;and a bsconfig.json with
{
.....
"sources": [{
"dir": "src",
"subdirs": {
"dir": "components",
"public": "none"
},
"public": ["ReactNative"]
}]
}Now the only exposed module is ReactNative and View is accessible but not the content of View, e.g. View.createElement`.
Expected behaviour
If a module is declared public all its submodules are public as well.