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

Unexpected symbol "?" on Safari 12.1 #23

Closed
hyoretsu opened this issue Jul 13, 2023 · 1 comment · Fixed by #24
Closed

Unexpected symbol "?" on Safari 12.1 #23

hyoretsu opened this issue Jul 13, 2023 · 1 comment · Fixed by #24

Comments

@hyoretsu
Copy link
Contributor

hyoretsu commented Jul 13, 2023

It throws an error on Safari 12.1, in both development and production. I also have a React lib that when transpiled used the ||= operator, which turns out was only supported in Safari 14.

It's probably the nullish coalescing you're using that isn't being polyfilled by tsup, since it's only supported by Safari 13.4 onwards.

@hyoretsu
Copy link
Contributor Author

Using ESNext as target, specially in a lib, isn't good. It can use features that very few browsers support.

hyoretsu added a commit to hyoretsu/nextjs-toploader that referenced this issue Jul 13, 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 a pull request may close this issue.

1 participant