Skip to content

Instantly share code, notes, and snippets.

@existentialmutt
Last active October 27, 2020 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save existentialmutt/7f32f9d3217d41a2d8bcd4c61aa201ec to your computer and use it in GitHub Desktop.
Save existentialmutt/7f32f9d3217d41a2d8bcd4c61aa201ec to your computer and use it in GitHub Desktop.
Polyfills for StimulusReflex in IE11
/*
This is the polyfill list from an application that has StimulusReflex / CableReady working in IE 11.
It is almost certainly overkill because some of our non-SR/CR features need polyfills too.
What's definitely needed is `@stimulus/polyfills`, `custom-event-polyfill`, `nodelist-foreach-polyfill`,
`@webcomponents/template`, and at least some of the object and array polyfills.
We also only use a few basic features of SR/CR so fancier stuff like Notifications may require additional polyfills.
*/
import "core-js/es/object";
import "core-js/es/array";
import "@stimulus/polyfills";
import "custom-event-polyfill";
import "nodelist-foreach-polyfill";
import "formdata-polyfill";
import "@webcomponents/template";
import "element-closest-polyfill";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment