es-module-shims
es-module-shims copied to clipboard
Polyfill does not run as expected
I have a Rails (7.1.3) app with importmap-rails (2.0.1). We noticed that when visiting the website with the Random User-Agent (Switcher) Chrome extension we get these error messages in the console and importmap does not work.
I would have expected the polyfill to run but it doesn't seem to be the case here. This is what I have in the head
of my page
%script{ async: true, src: "https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js", "data-turbo-track": "reload" }
= javascript_importmap_tags
= javascript_import_module_tag 'controllers'
Any guidance would be greatly appreciated 🙏