Skip to content

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

Merged
pi0 merged 2 commits into
mainfrom
refactor/interop-def
Oct 5, 2024
Merged

pi0 merged 2 commits into
mainfrom
refactor/interop-def

Conversation

@pi0

@pi0 pi0 commented Oct 5, 2024

Copy link
Copy Markdown
Member

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
@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