From 9458b6e1448e41e41a5f5f7e5708f98d3ae3aba7 Mon Sep 17 00:00:00 2001 From: Clemens Park Date: Sat, 26 Jan 2019 09:06:30 -0500 Subject: [PATCH] Sets up babel to respect `.babelrc` from monorepos https://github.com/facebook/jest/issues/6053#issuecomment-383632515 --- .babelrc | 8 -------- babel.config.js | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 .babelrc create mode 100644 babel.config.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index df3d097f1..000000000 --- a/.babelrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "presets": [ - "env", - "react", - "stage-1" - ], - "ignore": ["*.test*"] -} diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 000000000..89ec20bfc --- /dev/null +++ b/babel.config.js @@ -0,0 +1,8 @@ +module.exports = { + babelrcRoots: [ + "css", + "tokens", + "components", + "docs" + ] +};