Skip to content

CJS export is missing __esModule - Code transpiled to CJS can't use default export #12

Closed
@agilgur5

Description

@agilgur5

See #3 (comment) onward.

This is a bug in tsdx (jaredpalmer/tsdx#165) caused by caused by this config option in its rollup config

This bug makes the v0.1.0 release unintentionally breaking (to an extent at least, as CJS support wasn't available before v0.1.0) and as such fixing it should be high prio. The workaround is to not use default exports, but default is used in the README and v0.1.0 should maintain backward compatibility (though minor releases prior to v1 are allowed to be breaking, this was unintentionally breaking)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working properly or is fixedprogress: external blockerThis is blocked by an issue in an external dependencysolution: workaround availableThere is a workaround available for this

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions