diff --git a/app/frontend/application.js b/app/frontend/application.js index 6fe3925ee..54090d659 100644 --- a/app/frontend/application.js +++ b/app/frontend/application.js @@ -4,6 +4,8 @@ // that code so it'll be compiled. // Polyfills for IE +import "@webcomponents/webcomponentsjs" +import "core-js/stable" import "regenerator-runtime/runtime" import "@stimulus/polyfills" import "custom-event-polyfill" diff --git a/package.json b/package.json index a19697feb..a4b587f75 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "@hotwired/turbo": "^7.1.0", "@hotwired/turbo-rails": "^7.1.0", "@stimulus/polyfills": "^2.0.0", + "@webcomponents/webcomponentsjs": "^2.6.0", "accessible-autocomplete": "^2.0.3", "babel-loader": "^8.2.3", "babel-plugin-macros": "^3.1.0", diff --git a/yarn.lock b/yarn.lock index 664ef0ba7..acdeb1184 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1150,6 +1150,11 @@ "@webassemblyjs/ast" "1.11.1" "@xtuc/long" "4.2.2" +"@webcomponents/webcomponentsjs@^2.6.0": + version "2.6.0" + resolved "https://registry.yarnpkg.com/@webcomponents/webcomponentsjs/-/webcomponentsjs-2.6.0.tgz#7d1674c40bddf0c6dd974c44ffd34512fe7274ff" + integrity sha512-Moog+Smx3ORTbWwuPqoclr+uvfLnciVd6wdCaVscHPrxbmQ/IJKm3wbB7hpzJtXWjAq2l/6QMlO85aZiOdtv5Q== + "@webpack-cli/configtest@^1.1.1": version "1.1.1" resolved "https://registry.yarnpkg.com/@webpack-cli/configtest/-/configtest-1.1.1.tgz#9f53b1b7946a6efc2a749095a4f450e2932e8356"