From bc9c681a7f3c7f8e7fd84ae550a6cabee68d9772 Mon Sep 17 00:00:00 2001
From: Jack Reed <phillipjreed@gmail.com>
Date: Wed, 11 Dec 2019 08:18:34 -0700
Subject: [PATCH] Migrate from .babelrc to babel.config.js to ensure no
 conflict from node_modules/**/*/.babelrc fiels

---
 .babelrc        | 10 ----------
 babel.config.js | 19 +++++++++++++++++++
 2 files changed, 19 insertions(+), 10 deletions(-)
 delete mode 100644 .babelrc
 create mode 100644 babel.config.js

diff --git a/.babelrc b/.babelrc
deleted file mode 100644
index 01933494c..000000000
--- a/.babelrc
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-  "presets": ["@babel/preset-env", "@babel/preset-react"],
-  "plugins": [
-    "@babel/plugin-transform-runtime",
-    "transform-react-remove-prop-types",
-    ["lodash", { "id": [
-      "lodash",
-      ]}
-    ]],
-}
diff --git a/babel.config.js b/babel.config.js
new file mode 100644
index 000000000..a8748cc27
--- /dev/null
+++ b/babel.config.js
@@ -0,0 +1,19 @@
+module.exports = function (api) {
+  api.cache(true);
+
+  const presets = ['@babel/preset-env', '@babel/preset-react'];
+  const plugins = [
+    '@babel/plugin-transform-runtime',
+    'transform-react-remove-prop-types',
+    ['lodash', {
+      id: [
+        'lodash',
+      ],
+    },
+    ]];
+
+  return {
+    plugins,
+    presets,
+  };
+};
-- 
GitLab