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 package exports #45

Merged
merged 1 commit into from
Feb 15, 2020
Merged

Conversation

alex-saunders
Copy link
Contributor

This PR updates the package.json exports field to include valid paths (starting with ./) as currently the exports are not following the spec (defined here https://nodejs.org/api/esm.html#esm_package_exports)

We're trying to use es-module-lexer in snowpack but the current exports are breaking on Node 13 (you can see the full issue here FredKSchott/snowpack#208) so hopefully this should fix that issue for us and others!

@guybedford guybedford merged commit 89f2f34 into guybedford:master Feb 15, 2020
@guybedford
Copy link
Owner

Thanks @alex-saunders for the fix here! I've pushed out a 0.3.16, great to hear it's working for you otherwise. And can you believe I wrote those docs 🤦‍♂ .... (https://github.com/nodejs/node/blame/master/doc/api/esm.md#L229)

@alex-saunders
Copy link
Contributor Author

alex-saunders commented Feb 15, 2020

Ha! I'll excuse you this time around 😆

Cheers for merging and the release!

@alex-saunders alex-saunders deleted the update-exports branch February 15, 2020 19:45
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