Skip to content

Commit

Permalink
Revert "chore(NA): use the same polyfill between the dev environment …
Browse files Browse the repository at this point in the history
…and the jest env (elastic#57467)"

This reverts commit dbaa6b1.
  • Loading branch information
Thomas Watson committed Jun 13, 2023
1 parent 39450cd commit ec1ba24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 1 addition & 6 deletions packages/kbn-babel-preset/node_preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ module.exports = (_, options = {}) => {
// on their own
useBuiltIns: 'entry',
modules: 'cjs',
// right now when using `corejs: 3` babel does not use the latest available
// core-js version due to a bug: https://github.com/babel/babel/issues/10816
// Because of that we should use for that value the same version we install
// in the package.json in order to have the same polyfills between the environment
// and the tests
corejs: '3.29.0',
corejs: 3,
bugfixes: true,

...(options['@babel/preset-env'] || {}),
Expand Down
4 changes: 1 addition & 3 deletions packages/kbn-babel-preset/webpack_preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ module.exports = (api, options = {}) => {
{
useBuiltIns: 'entry',
modules: false,
// Please read the explanation for this
// in node_preset.js
corejs: '3.29.0',
corejs: 3,
bugfixes: true,
browserslistEnv: api.env('production') ? 'production' : 'dev',
},
Expand Down

0 comments on commit ec1ba24

Please sign in to comment.