Browse Source

CLDC-1057: add core-js polyfills

feature/CLDC-1057-ie-polyfills
kiddhustle 3 years ago
parent
commit
b519634625
  1. 2
      .browserslistrc
  2. 2
      app/webpacker/packs/application.js
  3. 2
      package.json
  4. 15
      yarn.lock

2
.browserslistrc

@ -1 +1,3 @@
defaults
ie 11
ie 10

2
app/webpacker/packs/application.js

@ -2,7 +2,7 @@
// present in this directory. You're encouraged to place your actual application logic in
// a relevant structure within app/javascript and only use these pack files to reference
// that code so it'll be compiled.
require("@babel/polyfill")
require("core-js");
require.context('govuk-frontend/govuk/assets')
import '../styles/application.scss'

2
package.json

@ -6,7 +6,6 @@
},
"dependencies": {
"@activeadmin/activeadmin": "^2.9.0",
"@babel/polyfill": "^7.12.1",
"@hotwired/stimulus": "^3.0.0",
"@hotwired/stimulus-webpack-helpers": "^1.0.1",
"@hotwired/turbo": "^7.1.0",
@ -17,6 +16,7 @@
"accessible-autocomplete": "^2.0.3",
"chart.js": "^3.6.0",
"chartkick": "^4.1.0",
"core-js": "3",
"govuk-frontend": "^4.0.1",
"stimulus": "^3.0.0",
"webpack": "^4.46.0",

15
yarn.lock

@ -785,14 +785,6 @@
"@babel/helper-create-regexp-features-plugin" "^7.16.7"
"@babel/helper-plugin-utils" "^7.16.7"
"@babel/polyfill@^7.12.1":
version "7.12.1"
resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.12.1.tgz#1f2d6371d1261bbd961f3c5d5909150e12d0bd96"
integrity sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g==
dependencies:
core-js "^2.6.5"
regenerator-runtime "^0.13.4"
"@babel/preset-env@^7.15.0":
version "7.16.11"
resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.16.11.tgz#5dd88fd885fae36f88fd7c8342475c9f0abe2982"
@ -2315,12 +2307,7 @@ core-js-compat@^3.20.2, core-js-compat@^3.21.0:
browserslist "^4.19.1"
semver "7.0.0"
core-js@^2.6.5:
version "2.6.12"
resolved "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz"
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
core-js@^3.16.2:
core-js@3, core-js@^3.16.2:
version "3.21.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.21.1.tgz#f2e0ddc1fc43da6f904706e8e955bc19d06a0d94"
integrity sha512-FRq5b/VMrWlrmCzwRrpDYNxyHP9BcAZC+xHJaqTgIE5091ZV1NTmyh0sGOg5XqpnHvR0svdy0sv1gWA1zmhxig==

Loading…
Cancel
Save