@stimulus_reflex/polyfills

3.4.0 • Public • Published

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

Polyfills imported from @stimulus/polyfills

Polyfills imported from @cable_ready/polyfills

Polyfills imported from formdata-polyfill

Readme

Keywords

none

Package Sidebar

Install

npm i @stimulus_reflex/polyfills

Weekly Downloads

70

Version

3.4.0

License

MIT

Unpacked Size

3.74 kB

Total Files

7

Last publish

Collaborators

  • hopsoft
  • marcoroth
  • julianrubisch
  • stimulusreflex-bot