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: disable loose mode of swc #137

Closed
wants to merge 1 commit into from

Conversation

koba04
Copy link

@koba04 koba04 commented Oct 3, 2022

The loose mode of swc breaks the build of swr, so I've turned off the loose mode.
vercel/swr#2180

@huozhi
Copy link
Owner

huozhi commented Oct 3, 2022

The iterator transform of swc with downlevelIteration seems not correct comparing to babel. I filed an issue to swc to track it
For bunchee we cannot turn off the loose mode cause it's a breaking change. The loose mode is supposed to work properly.

Filed a workaround fix on swr side

@huozhi huozhi closed this Oct 3, 2022
@koba04 koba04 deleted the disable-loose-mode branch October 4, 2022 00:14
@huozhi huozhi mentioned this pull request Oct 6, 2022
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.

2 participants