From b46f9d5e80488e863c3e98b29c018991ccc08fc1 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 1 Aug 2021 12:55:45 +0530 Subject: Migrated babel config according to https://babeljs.io/docs/en/v7-migration --- .babelrc | 45 --------------------------------------------- babel.config.json | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 45 deletions(-) delete mode 100644 .babelrc create mode 100644 babel.config.json diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 6c589d42e..000000000 --- a/.babelrc +++ /dev/null @@ -1,45 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "targets": { - "electron": 13 - } - } - ], - "@babel/react" - ], - "plugins": [ - [ - "@babel/plugin-proposal-decorators", - { - "legacy": true - } - ], - "@babel/proposal-export-default-from", - [ - "@babel/proposal-class-properties", - { - "loose": true - } - ], - "@babel/proposal-throw-expressions", - "@babel/syntax-dynamic-import", - [ - "react-intl", - { - "messagesDir": "./src/i18n/messages/", - "enforceDescriptions": false, - "extractSourceLocation": true - } - ], - [ - "@babel/plugin-proposal-private-methods", - { - "loose": true - } - ] - ], - "sourceMaps": "inline" -} diff --git a/babel.config.json b/babel.config.json new file mode 100644 index 000000000..034e51ce5 --- /dev/null +++ b/babel.config.json @@ -0,0 +1,49 @@ +{ + "babelrcRoots": [ + ".", + "packages/*" + ], + "presets": [ + [ + "@babel/preset-env", + { + "targets": { + "electron": 13 + } + } + ], + "@babel/preset-react" + ], + "plugins": [ + [ + "@babel/plugin-proposal-decorators", + { + "legacy": true + } + ], + "@babel/proposal-export-default-from", + [ + "@babel/proposal-class-properties", + { + "loose": true + } + ], + "@babel/proposal-throw-expressions", + "@babel/syntax-dynamic-import", + [ + "react-intl", + { + "messagesDir": "./src/i18n/messages/", + "enforceDescriptions": false, + "extractSourceLocation": true + } + ], + [ + "@babel/plugin-proposal-private-methods", + { + "loose": true + } + ] + ], + "sourceMaps": "inline" +} -- cgit v1.2.3-70-g09d2