Skip to content

Namespace support #1584

@saschatimme

Description

@saschatimme

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions