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

Set up Babel polyfills for browser compatibility #3948

Open
1 of 4 tasks
colinrotherham opened this issue Jul 11, 2023 · 0 comments
Open
1 of 4 tasks

Set up Babel polyfills for browser compatibility #3948

colinrotherham opened this issue Jul 11, 2023 · 0 comments

Comments

@colinrotherham
Copy link
Contributor

colinrotherham commented Jul 11, 2023

What

Set up Babel to automatically add polyfills for unsupported browser APIs.

Ideally, unsupported code should be replaced with "pure" polyfills (ponyfills) that do not modify browser globals.

Why

This issue follows on from #3504 and is only needed when we choose to use a browser API unavailable in .browserlistrc supported browsers

Polyfill code should not cause parsing or syntax errors. Since feature detection can guard against code we choose not to run, unsupported browser APIs don't have to be polyfilled.

This will be done with caution while keeping an eye on the impact of the polyfills on the size of the built files.

Who needs to work on this

Developers

Who needs to review this

Developers

Depends on

Done when

  1. javascript performance tooling
  2. documentation javascript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant