Skip to content

Prevent export of $$default #4906

Closed
@ryyppy

Description

@ryyppy

No matter if I am using an interface file or not, this code:

let default = ""

will emit following js:

exports.$$default = $$default;
exports.default = $$default;

Is there a way to prevent $$default to be exported? This messes with tools like Storybook, which iterates over the exports of a component.

I assume this is required to be able to use values across ReScript modules?

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