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

Update primer/behaviors for esm compatibility #2002

Merged
merged 4 commits into from
Mar 31, 2022
Merged

Update primer/behaviors for esm compatibility #2002

merged 4 commits into from
Mar 31, 2022

Conversation

dgreif
Copy link
Member

@dgreif dgreif commented Mar 28, 2022

In v1.1.1, @primer/behaviors adds better support of imports with ESM. This resolves issues for projects attempting to import @primer/react in environments that support ESM, but do not recognize the module export type. It also allows us to remove the override that caused Jest to tranform the behaviors files before using them.

Merge checklist

  • Added/updated tests

@dgreif dgreif requested review from a team and jfuchs March 28, 2022 22:06
@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2022

🦋 Changeset detected

Latest commit: cbc5bed

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dgreif dgreif temporarily deployed to visual-testing March 28, 2022 22:06 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Mar 28, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 65.72 KB (0%)
dist/browser.umd.js 66.11 KB (0%)

@pksjce
Copy link
Collaborator

pksjce commented Mar 29, 2022

Would you think its useful to add a similar imports to @primer/react as well?

@dgreif
Copy link
Member Author

dgreif commented Mar 29, 2022

I think it has default which may give you the same behavior in the end. The down-stream use case only seem to have issues with the behaviors imports, so I think we are good to go

@pksjce
Copy link
Collaborator

pksjce commented Mar 30, 2022

:shipit:

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