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: lower version browsers do not support nullish-coalescing syntax #2060

Closed
wants to merge 1 commit into from

Conversation

zbJinu
Copy link

@zbJinu zbJinu commented Sep 4, 2023

I noticed that your code uses the nullish-coalescing syntax, which will report an error on mobile browsers with low versions
babel plugin (nullish-coalescing syntax) is added to support browsers in lower versions.

스크린샷 2023-09-04 오후 2 54 07

caniuse
스크린샷 2023-09-04 오후 2 49 17

@zbJinu zbJinu marked this pull request as ready for review September 4, 2023 05:55
@dimsemenov
Copy link
Owner

Thanks, I had to adjust the code as you provided incorrect Babel plugin (plugin-syntax-nullish-coalescing-operator instead of
plugin-transform-nullish-coalescing-operator ).

closed by 28baa3d

@dimsemenov dimsemenov closed this Sep 8, 2023
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