-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Add airbnb-js-shims to client-side JS #147
Conversation
e582598
to
0a5f3d4
Compare
Isn't this something babel does automatically? I like to know which code breaks this? Could you try updating core-js to the latest: |
Babel transpiles syntax, not API. Shims are still required, and these ones actively shim fewer things than babel-polyfill/core-js. |
@ljharb doen't add more overhead. I think we only need es6 shims in that case. In the meantime, let's add only es6-shim to the core. |
@arunoda es5-shim and es5-sham are still required for React to work in IE 8. No browser, even latest Chrome, complies with ES5, even. |
@ljharb I'm not sure whether we need to support browsers like IE8
CC / @mnmtanish |
@arunoda the cost is tiny, and the benefits range from zero to very high, depending on users' browser support matrix. As for ES5, there does not exist any version of any JS engine that fully complies with ES5. The failures are minimal at this point, but they exist, and using the shims ensures they are papered over. |
@ljharb I think we can go with this. |
This gets IE11 working for me
0a5f3d4
to
40cd0ec
Compare
Rebased, conflicts resolved |
Awesome. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 40cd0ec. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
This adds airbnb-js-shims to the admin js and the iframe js, which gets IE11 working for me, where it used to break on an
Array.from