Skip to content

Consider unstable flag to make cjs files be treated as esm #22818

@dsherret

Description

@dsherret

It would be useful to have an unstable flag that allows people to import CJS files that contain imports/exports similar to Node's --experimental-detect-module.

For example: #22811

Metadata

Metadata

Assignees

No one assigned

    Labels

    suggestionsuggestions for new features (yet to be agreed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions