Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xc2 opened this issue Nov 2, 2024 · 0 comments
Open

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

xc2 opened this issue Nov 2, 2024 · 0 comments

Comments

@xc2
Copy link
Contributor

xc2 commented Nov 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant