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

Declare package exports in the actual package instead of the parent. #67

Closed
wants to merge 1 commit into from
Closed

Conversation

konstantinblaesi
Copy link

Hey,

I am not using the library or have good knowledge on the exports topic but on taking a closer look it seemed like the exports as shown in the PR make more sense.
I made a SvelteKit repo that can demonstrate the runtime issue due to bad exports . I only used npm link to confirm that those changes resolved my error.
Do these make sense or would it break something else?

Fixes #52

@google-cla
Copy link

google-cla bot commented Dec 20, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@simpros
Copy link

simpros commented Dec 20, 2022

@konstantinblaesi thank you so much for putting that mich effort in it! I think the comment above is still relavant 🤔

@davideast would you mind to have a look at it? It would solve 3-4 issues as far as I see 🙏

@konstantinblaesi
Copy link
Author

setting type = module on the parent package.json also seems to fix the issue, would that be preferred to this PR?

@konstantinblaesi konstantinblaesi closed this by deleting the head repository Mar 12, 2023
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.

The requested module is a CommonJS module, which may not support all module.exports as named exports.
3 participants