Commit d8d8c0e7 authored by Mike Greiling's avatar Mike Greiling

Merge branch...

Merge branch '28837-update-javascript-language-polyfills-with-usebuiltins-and-core-js-v3' into 'master'

Resolve "Update JavaScript language polyfills with UseBuiltins and core-js v3"

Closes #28837

See merge request gitlab-org/gitlab!19629
parents 1fd8792e 4c68d04a
// ECMAScript polyfills import 'core-js/stable';
import 'core-js/es/array/fill';
import 'core-js/es/array/find';
import 'core-js/es/array/find-index';
import 'core-js/es/array/from';
import 'core-js/es/array/includes';
import 'core-js/es/number/is-integer';
import 'core-js/es/object/assign';
import 'core-js/es/object/values';
import 'core-js/es/object/entries';
import 'core-js/es/promise';
import 'core-js/es/promise/finally';
import 'core-js/es/string/code-point-at';
import 'core-js/es/string/from-code-point';
import 'core-js/es/string/includes';
import 'core-js/es/string/starts-with';
import 'core-js/es/string/ends-with';
import 'core-js/es/symbol';
import 'core-js/es/map';
import 'core-js/es/weak-map';
import 'core-js/modules/web.url';
// Browser polyfills // Browser polyfills
import 'formdata-polyfill'; import 'formdata-polyfill';
......
import 'core-js/es/map';
import 'core-js/es/set';
import { Sortable } from 'sortablejs'; import { Sortable } from 'sortablejs';
import simulateDrag from './simulate_drag'; import simulateDrag from './simulate_drag';
import simulateInput from './simulate_input'; import simulateInput from './simulate_input';
......
...@@ -6,6 +6,8 @@ const presets = [ ...@@ -6,6 +6,8 @@ const presets = [
[ [
'@babel/preset-env', '@babel/preset-env',
{ {
useBuiltIns: 'usage',
corejs: { version: 3, proposals: true },
modules: false, modules: false,
targets: { targets: {
ie: '11', ie: '11',
...@@ -51,4 +53,4 @@ if (isJest) { ...@@ -51,4 +53,4 @@ if (isJest) {
plugins.push('babel-plugin-dynamic-import-node'); plugins.push('babel-plugin-dynamic-import-node');
} }
module.exports = { presets, plugins }; module.exports = { presets, plugins, sourceType: 'unambiguous' };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment