es-module-shims icon indicating copy to clipboard operation
es-module-shims copied to clipboard

Polyfill does not run as expected

Open benj-p opened this issue 8 months ago • 4 comments

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.

image

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 🙏

benj-p avatar May 28 '24 09:05 benj-p