3.4.0 • Published 5 years ago
@stimulus_reflex/polyfills v3.4.0
Polyfills for StimulusReflex
Description
The @stimulus_reflex/polyfills package provides support for StimulusReflex and CableReady in older browsers like Internet Explorer 11.
Usage
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 '@stimulus_reflex/polyfills'
import 'controllers'
// ...If you have an existing import for @stimulus/polyfills you can safely remove it. The @stimulus/polyfills package is included with @stimulus_reflex/polyfills.
-import '@stimulus/polyfills'
+import '@stimulus_reflex/polyfills'Details
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:
Polyfills included/imported in this package
Custom
String.startsWith()String.includes()
Polyfills imported from @stimulus/polyfills
- core-js
Array.find()Array.findIndex()Array.from()MapObject.assign()PromiseReflect.deleteProperty()Set
- element-closest
Element.closest()
- mutation-observer-inner-html-shim
MutationObserversupport for Internet Explorer 11
- eventlistener-polyfill
- once & passive support for Internet Explorer 11 & Edge
Polyfills imported from @cable_ready/polyfills
Array.flat()Array.forEach()Array.from()Array.includes()Object.entries()Promise
Polyfills imported from formdata-polyfill
3.4.0
5 years ago
3.4.0-pre8
5 years ago
3.4.0-dev.4
5 years ago
3.4.0-dev.3
5 years ago
3.4.0-dev.2
5 years ago
3.4.0-dev.1
5 years ago
3.4.0-dev.0
5 years ago