Skip to content

ESM dynamic import via CommonJS #34775

Description

Is your feature request related to a problem? Please describe.
A command implemented in CommonJS needs to be able to load an ESM dynamically and synchronously, without being re-implemented as an ESM. See Problem with ESM modules in the knex package.

Describe the solution you'd like

let result = esm.importSync(path);

Describe alternatives you've considered
None.

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