diff --git a/.babelrc b/.babelrc index adee9fa4..c1c0b301 100644 --- a/.babelrc +++ b/.babelrc @@ -2,8 +2,7 @@ "presets": ["@babel/env", "@babel/react", "@babel/flow"], "plugins": [ "@babel/plugin-proposal-class-properties", - ["@babel/plugin-transform-runtime", { "corejs": 2 }], - "array-includes" + ["@babel/plugin-transform-runtime", { "corejs": 2 }] ], "env": { "production": { diff --git a/package.json b/package.json index 7d8109c7..9057ad8c 100644 --- a/package.json +++ b/package.json @@ -61,7 +61,6 @@ "babel-eslint": "^8.2.5", "babel-loader": "^8.0.0-beta.4", "babel-plugin-add-module-exports": "^0.2.1", - "babel-plugin-array-includes": "^2.0.3", "babel-preset-env": "^7.0.0-beta.3", "babel-register": "^7.0.0-beta.3", "cross-env": "^5.1.4", diff --git a/rollup.config.js b/rollup.config.js index e86139c4..02817f3e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -59,6 +59,7 @@ export default { 'prop-types', '@fortawesome/react-fontawesome', '@fortawesome/free-regular-svg-icons', + '@babel/runtime-corejs2', '@babel/runtime/regenerator', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/helpers/objectWithoutProperties', diff --git a/yarn.lock b/yarn.lock index 7c5905f1..1409eed1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1965,10 +1965,6 @@ babel-plugin-add-module-exports@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/babel-plugin-add-module-exports/-/babel-plugin-add-module-exports-0.2.1.tgz#9ae9a1f4a8dc67f0cdec4f4aeda1e43a5ff65e25" -babel-plugin-array-includes@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/babel-plugin-array-includes/-/babel-plugin-array-includes-2.0.3.tgz#cf5452e81c7b803fb7959f1045ac88e2ec28ff76" - babel-plugin-check-es2015-constants@7.0.0-beta.3: version "7.0.0-beta.3" resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-7.0.0-beta.3.tgz#d4b0c9de206c6478df2d74b7d82f4f94662b2a4b"