wax icon indicating copy to clipboard operation
wax copied to clipboard

Wax cannot handle exported types

Open metatablecat opened this issue 1 year ago • 0 comments

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.

metatablecat avatar Jun 04 '24 04:06 metatablecat