🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@stimulus_reflex/polyfills

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stimulus_reflex/polyfills

Polyfills to support StimulusReflex in older browsers

latest
Source
npmnpm
Version
3.4.0
Version published
Maintainers
1
Created
Source

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

    • NodeList.forEach()
  • core-js

    • String.startsWith()
    • String.includes()

Polyfills imported from @stimulus/polyfills

Polyfills imported from @cable_ready/polyfills

Polyfills imported from formdata-polyfill

FAQs

Package last updated on 31 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts