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

Fix exports for some bundlers #166

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

proudparrot2
Copy link
Contributor

I've been using this package in a javascript library with esbuild and it's worked fine, but for some reason, rspack can't resolve it. Adding "main": "index.js" to package.json fixed this.

@wesleytodd
Copy link
Member

While this is a good change and likely to land here, you might want to report that as a bug to them. The default behavior when main is missing is to use index.js: https://nodejs.org/docs/latest/api/modules.html#folders-as-modules

@blakeembrey blakeembrey merged commit 927d48a into jshttp:master Oct 2, 2024
26 checks passed
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

Successfully merging this pull request may close these issues.

3 participants