Skip to content

Loader to handle interop when importing CJS from ESM #19

Open

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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