Skip to content

Loader to handle interop when importing CJS from ESM #19

@make-github-pseudonymous-again

Description

When CJS is imported from ESM, only static properties are available for named imports. Properties defined using Object.defineProperty are only available through module.default.property. Would it make sense to create a loader that handles CJS imports differently? Is that at all possible? IIRC only ESM imports are handled by custom loaders.

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