The @cable_ready/polyfills
package provides support for CableReady in older browsers like Internet Explorer 11.
To include the polyfills you just have to import the package. Typically you want to import it in app/javascript/packs/application.js
.
// app/javascript/packs/application.js
import '@cable_ready/polyfills'
// ...
This repository contains a few polyfills itself and bundles up polyfills from other packages. The following list shows the included polyfills and where they are coming from:
-
Custom
-
Array.flat()
Array.forEach()
Array.from()
Array.includes()
Object.entries()
Promise