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 map for TypeScript #1655

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

rossng
Copy link
Contributor

@rossng rossng commented Aug 10, 2022

  • Rewrite the exports map in package.json so that the types key is available for both require and import. Otherwise TypeScript will ignore the types when looking for CJS types.

@rossng
Copy link
Contributor Author

rossng commented Aug 10, 2022

Aims to address #1543

@mattgperry
Copy link
Collaborator

Looks good, thanks for this

@mattgperry mattgperry merged commit 4112965 into motiondivision:main Aug 11, 2022
@rossng rossng deleted the feature/fix-exports-map branch August 11, 2022 08:38
utileetdulce pushed a commit to utileetdulce/motion that referenced this pull request Oct 24, 2022
* Update exports map in `framer-motion`

* Fix exports map in `framer-motion-3d`
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