Skip to content

Wax cannot handle exported types #5

@metatablecat

Description

@metatablecat

A common pattern in libraries is to have a dedicated Types library, however, it looks like Wax doesn't handle types that use the A.B syntax that well. (which is to be expected, luau is silly).

If the library does use a Types module (which can usually be detected by the module not returning anything nil), it should probably unwrap the types and remove the export keyword if neccessary.

Best compromise I can think of is to wrap an exported type as ModuleName_Type in the bundle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions