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: update exports to work with current release workflow #1275

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

varna
Copy link
Contributor

@varna varna commented Aug 15, 2024

At the moment, the release version of this package doesn't work anymore when imported into another project.
This fix allows ESM imports to work again.

@varna varna requested a review from a team as a code owner August 15, 2024 14:31
@@ -22,7 +22,12 @@
"drawing"
],
"type": "module",
"exports": "./index.js",
"exports": {
".": "./index.js",
Copy link
Member

Choose a reason for hiding this comment

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

I think it should point to ./dist/mapbox-gl-draw.js

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