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

Polyfill safari 14 #149

Merged
merged 7 commits into from
May 2, 2023
Merged

Polyfill safari 14 #149

merged 7 commits into from
May 2, 2023

Conversation

Grsmto
Copy link
Contributor

@Grsmto Grsmto commented Apr 28, 2023

  • add core-js and necessary polyfills (miss babel-preset-env 😢 )
  • set TS target to ES2018(ES9) so it transpiles things (shouldn't be much things tbh but might worth setting).

closes #141

@Grsmto Grsmto requested a review from coyotte508 April 28, 2023 15:17
@coyotte508 coyotte508 requested a review from gary149 April 28, 2023 15:19
@coyotte508
Copy link
Member

I'll defer to @gary149 on this one

@gary149
Copy link
Collaborator

gary149 commented Apr 28, 2023

Did you try on Safari 14 @Grsmto ?

@Grsmto
Copy link
Contributor Author

Grsmto commented Apr 28, 2023

Did you try on Safari 14 @Grsmto ?

Yep. Works now.

@Grsmto Grsmto changed the title Polyfill safari 14 Polyfill safari 13 Apr 28, 2023
@Grsmto
Copy link
Contributor Author

Grsmto commented Apr 28, 2023

Did you try on Safari 14 @Grsmto ?

Yep. Works now.

Sorry there was one missing bit I had not commited. cc @coyotte508 related to the fix you did on crypto.random.
Should be working on Safari 14 now.

@Grsmto Grsmto changed the title Polyfill safari 13 Polyfill safari 14 Apr 28, 2023
@@ -8,7 +8,8 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
"strict": true,
"target": "ES2018"
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually the default is ES3, so in this case it's an upgrade. We don't need it but it's cool to have an explicity target maybe (it's also the value used on moonlanding).

@gary149 gary149 self-requested a review April 28, 2023 21:25
@Grsmto Grsmto merged commit 9c038aa into main May 2, 2023
@Grsmto Grsmto deleted the polyfill-safari-14 branch May 2, 2023 08:48
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
* add core-js and necessary polyfills

* set TS target to ES2015

* set ES2018 as default since it's prob enough

* remove --host added by mistake

* replace usage of array.prototype.at by more compatible alternative

* remove core-js and replaceAll polyfill

* fix wrong usage of crypto global
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.

Improve browser support
3 participants