Skip to content

Unwrap default exports in CJS under default property#127

Open
enisdenjo wants to merge 7 commits intoprivatenumber:masterfrom
enisdenjo:interop-auto
Open

Unwrap default exports in CJS under default property#127
enisdenjo wants to merge 7 commits intoprivatenumber:masterfrom
enisdenjo:interop-auto

Conversation

@enisdenjo
Copy link
Copy Markdown

Closes #101

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

@privatenumber
Copy link
Copy Markdown
Owner

Thanks for the PR!

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

@enisdenjo
Copy link
Copy Markdown
Author

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

@enisdenjo
Copy link
Copy Markdown
Author

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

@privatenumber
Copy link
Copy Markdown
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
Copy Markdown
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