Skip to content

Feature Request: Allow choosing to prefer esm entry or cjs entry #14

Description

@xc2

es module makes sense.

I'd prefer to:

  • add an entry option to allow users to specify the entry point; or
  • add a preferCondition: "import" | "require" option and use enhanced-resolve to resolve the entry.

Once we add a resolver library to the codebase, we can also use it to resolve the type declaration file more reliably.

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