From 214ab9117bf5c03411097d5d0db3082d42ec0558 Mon Sep 17 00:00:00 2001 From: RichieAHB Date: Mon, 30 Apr 2018 15:12:04 +0100 Subject: [PATCH] Fix issue with new babel not compiling panda-session See relevant discussion https://github.com/facebook/jest/issues/6053#issuecomment-383632515 --- client-v2/.babelrc | 19 ------------------- client-v2/babel.config.js | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 client-v2/.babelrc create mode 100644 client-v2/babel.config.js diff --git a/client-v2/.babelrc b/client-v2/.babelrc deleted file mode 100644 index ab803d6118e..00000000000 --- a/client-v2/.babelrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "presets": [ - [ - "@babel/env", - { - "useBuiltIns": "usage", - "targets": { - "browsers": ["chrome >= 49", "firefox >= 48", "safari >= 10", "> 1%"] - } - } - ], - "@babel/react", - "@babel/flow" - ], - "plugins": [ - "@babel/plugin-proposal-object-rest-spread", - "transform-class-properties" - ] -} diff --git a/client-v2/babel.config.js b/client-v2/babel.config.js new file mode 100644 index 00000000000..a3c9d6788a3 --- /dev/null +++ b/client-v2/babel.config.js @@ -0,0 +1,19 @@ +module.exports = { + presets: [ + [ + '@babel/env', + { + useBuiltIns: 'usage', + targets: { + browsers: ['chrome >= 49', 'firefox >= 48', 'safari >= 10', '> 1%'] + } + } + ], + '@babel/react', + '@babel/flow' + ], + plugins: [ + '@babel/plugin-proposal-object-rest-spread', + 'transform-class-properties' + ] +};