-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Build failure with Parcel #456
Comments
According to Node.js documentation, you should be able to rely exclusively on
Regardless, it would nice to support Parcel users by adding a "main": "./dist/index.js", |
Seems like this could be due to conditional exports not supported in Parcel. Perhaps this adds more justification for a |
🙏 |
Describe the feature / bug 📝:
In a minimal reproducible example here Parcel build fails with the following error
Steps to reproduce the bug 🔁:
'sonner'
or clonegit@github.com:adamhenson/parcel-sonner.git
npx parcel src/index.html
or with the cloned projectnpm run dev
Theory
My theory is that Parcel follows the NPM package.json docs strictly and perhaps requires a
main
entry.~ package.json | npm Docs
UPDATE: Seems like the issue could be due to conditional exports not supported by Parcel. I think this is good justification to add the main entry as a fallback for when conditional exports is not supported (like in the case of Parcel).
The text was updated successfully, but these errors were encountered: