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

fix(es/module): improve cjs lexer compatibility #5080

Merged
merged 2 commits into from Jul 1, 2022

Conversation

magic-akari
Copy link
Member

Description:

It's a little weird that cjs-module-lexer doesn't recognize exports getter if enumerable: true is not the first one.
This pull request improve the compatibility with cjs-module-lexer.

https://runkit.com/embed/ez1qzzokityr
image

BREAKING CHANGE:

Related issue (if exists):

kdy1
kdy1 previously approved these changes Jul 1, 2022
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!


swc-bump:

  • swc_ecma_transforms_module

@kdy1 kdy1 added this to the Planned milestone Jul 1, 2022
@kdy1 kdy1 enabled auto-merge (squash) July 1, 2022 06:23
@magic-akari
Copy link
Member Author

Ah, node-api test failed. I will update the test cases.

auto-merge was automatically disabled July 1, 2022 06:35

Head branch was pushed to by a user without write access

@kdy1 kdy1 enabled auto-merge (squash) July 1, 2022 08:36
@kdy1 kdy1 merged commit 9e162dc into swc-project:main Jul 1, 2022
@kdy1 kdy1 modified the milestones: Planned, v1.2.208 Jul 1, 2022
@magic-akari magic-akari deleted the fix/cjs-lexer-compatibility branch July 6, 2022 06:41
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants