Skip to content

Commit

Permalink
chore(build): update polyfilling with core-js
Browse files Browse the repository at this point in the history
  • Loading branch information
GertSallaerts committed Nov 4, 2021
1 parent 30e2430 commit f23a443
Show file tree
Hide file tree
Showing 3 changed files with 3,132 additions and 3,656 deletions.
10 changes: 7 additions & 3 deletions js/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,18 @@ module.exports = api => {
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-export-default-from',
'add-module-exports'
'add-module-exports',
[
'polyfill-corejs3',
{
method: 'usage-pure'
}
]
],
presets: [
[
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: 2,
modules: api.env('commonjs') || api.env('test') ? 'commonjs' : false,
forceAllTransforms: api.env('production')
}
Expand Down
3 changes: 2 additions & 1 deletion js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@babel/preset-env": "^7.4.0",
"babel-eslint": "^10.0.1",
"babel-plugin-add-module-exports": "^1.0.2",
"babel-plugin-polyfill-corejs3": "^0.3.0",
"eslint": "^4.18.1",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.6.0",
Expand Down Expand Up @@ -57,7 +58,7 @@
},
"dependencies": {
"@babel/runtime": "^7.3.1",
"core-js": "^2.5.0",
"core-js-pure": "^3.19.0",
"punycode": "1.4.1",
"twemoji-parser": "^11.0.2"
}
Expand Down
Loading

0 comments on commit f23a443

Please sign in to comment.