Browse Source

CLDC-1057: add polyfills

feature/CLDC-1057-ie-polyfills
kiddhustle 3 years ago
parent
commit
036e90d984
  1. 1
      app/webpacker/packs/application.js
  2. 13
      babel.config.js
  3. 1
      package.json
  4. 1854
      yarn.lock

1
app/webpacker/packs/application.js

@ -2,6 +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.context('govuk-frontend/govuk/assets')
import '../styles/application.scss'

13
babel.config.js

@ -21,7 +21,10 @@ module.exports = function(api) {
'@babel/preset-env',
{
targets: {
node: 'current'
node: 'current',
browsers: [
'ie >= 10'
]
}
}
],
@ -32,7 +35,13 @@ module.exports = function(api) {
useBuiltIns: 'entry',
corejs: 3,
modules: false,
exclude: ['transform-typeof-symbol']
exclude: ['transform-typeof-symbol'],
targets: {
node: 'current',
browsers: [
'ie >= 10'
]
}
}
]
].filter(Boolean),

1
package.json

@ -6,6 +6,7 @@
},
"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",

1854
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save