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

Use package exports for shim #3468

Open
1 task done
jthoward64 opened this issue Feb 1, 2025 · 0 comments
Open
1 task done

Use package exports for shim #3468

jthoward64 opened this issue Feb 1, 2025 · 0 comments
Labels

Comments

@jthoward64
Copy link

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

Currently to use this package in a common library, we have to use resolver overrides which can be brittle and tedious to maintain.

Describe the solution you'd like

Use conditional exports to export the main entry (probably under "node" or "require") point as well as the shim under "browser" or "default" (and maybe "react-native" too?).

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

Make less work and remove some surprises from end users.

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

No branches or pull requests

1 participant