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

Default export condition should be last one #14

Merged
merged 3 commits into from
Mar 20, 2024

Conversation

icidasset
Copy link
Contributor

👋 Thanks for this great package.

I was trying to use the client and got this error in my bundler:

Default condition should be last one in "node_modules/@localfirst/relay/package.json"

This PR fixes that.

On the why, the node.js docs say the default condition should be last:
https://nodejs.org/api/packages.html#conditional-exports

I've also renamed the exports so that they don't contain the .js extension which can be confusing to some bundlers (my eslint complained about this). And I've also removed an outdated yarn lock file. Let me know if I need to undo this.

@HerbCaudill HerbCaudill merged commit 11f020c into local-first-web:main Mar 20, 2024
1 check passed
@HerbCaudill
Copy link
Member

Hi @icidasset - thanks for this, and sorry for not getting to it sooner!

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.

2 participants