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

fixes a problem importing into some enviroments (jest) #112

Merged
merged 1 commit into from
Jul 30, 2022
Merged

fixes a problem importing into some enviroments (jest) #112

merged 1 commit into from
Jul 30, 2022

Conversation

glend1
Copy link
Contributor

@glend1 glend1 commented Jul 30, 2022

apologies for my previous pull request. i made the wrong change. this one works.

the issue has been detailed here.

Copy link
Owner

@ianprime0509 ianprime0509 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! This is good to know. When I originally used import here, I was assuming that would make sense because this library is ESM-only and so it doesn't make sense to require it, but it seems like default should also be fine: https://nodejs.org/api/packages.html#conditional-exports

@ianprime0509 ianprime0509 merged commit cf237b9 into ianprime0509:main Jul 30, 2022
@github-actions
Copy link

🎉 This PR is included in version 4.0.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

ianprime0509 added a commit to ianprime0509/temperament that referenced this pull request Aug 6, 2022
package.json should be exported to support certain tools:
ianprime0509/pitchy#108

The `default` export condition should be preferred to just using
`import`, also to support certain tools:
ianprime0509/pitchy#112
ianprime0509 added a commit to ianprime0509/temperament that referenced this pull request Aug 6, 2022
package.json should be exported to support certain tools:
ianprime0509/pitchy#108

The `default` export condition should be preferred to just using
`import`, also to support certain tools:
ianprime0509/pitchy#112
ianprime0509 added a commit to ianprime0509/static-jsx that referenced this pull request Aug 6, 2022
package.json should be exported to support certain tools:
ianprime0509/pitchy#108

The `default` export condition should be preferred to just using
`import`, also to support certain tools:
ianprime0509/pitchy#112
ianprime0509 added a commit to ianprime0509/static-jsx that referenced this pull request Aug 6, 2022
package.json should be exported to support certain tools:
ianprime0509/pitchy#108

The `default` export condition should be preferred to just using
`import`, also to support certain tools:
ianprime0509/pitchy#112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants