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

Package exports browser field interaction #2593

Open
guybedford opened this issue Oct 5, 2022 · 0 comments
Open

Package exports browser field interaction #2593

guybedford opened this issue Oct 5, 2022 · 0 comments

Comments

@guybedford
Copy link
Contributor

I thought I followed something here previously where esbuild had to deal with the interaction between the exports field resultant target path itself being a key in the "browser" field.

There is an example repo for this applying to solid-js in https://github.com/patdx/package-exports-test by @patdx.

In discussions with @sokra I recall Webpack wanting this behaviour, so we implemented it in RollupJS as well to match, but I was under the assumption that we were matching esbuild, although it appears that is not the case.

We can adjust RollupJS to match either pattern, was hoping we could get some further discussion going on which way to move here @evanw.

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