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

refactor(interopDefault): simplify logic for default export checks #322

Merged
merged 2 commits into from
Oct 5, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Oct 5, 2024

Simplify interopDefault introduced in #318

Other than simplification, this PR causes to make use of Proxy in more cases (even if there is single default export) for better future compatibility.

Important

This is another behavior change in 2.x line to align behavior better with native import, if default export is a primitive, it needs to be accessed with .default.

@pi0 pi0 self-assigned this Oct 5, 2024
@pi0 pi0 merged commit fd5d7ea into main Oct 5, 2024
7 checks passed
@pi0 pi0 deleted the refactor/interop-def branch October 5, 2024 10:06
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.

1 participant