Skip to content

Unwrap default exports in CJS under default property #127

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

enisdenjo
Copy link

Closes #101

Injecting helpers that contain code that detects at runtime if the required value contains the __esModule property.

@privatenumber
Copy link
Owner

Thanks for the PR!

Would you mind adding a small test to lock this behavior in?

@enisdenjo
Copy link
Author

Yes certainly! I wanted to and got destracted by something else. Will add soon. 👍

@enisdenjo
Copy link
Author

@privatenumber ok test is in, this should be ready to go.

@privatenumber
Copy link
Owner

I'm in favor of this change, but this is breaking for anyone that is relying on the current behavior and is doing importedModule.default().

Going to hold this for a bit but I think we'll cut a major release soon.

@enisdenjo
Copy link
Author

Makes sense. Thanks!

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.

Does not unwrap default exports in CJS under default property
2 participants