From 0ef5a1f4c6c087bc14df9f981f96c5b0fae260ce Mon Sep 17 00:00:00 2001 From: Marcin Kozlowski Date: Wed, 21 Aug 2024 08:40:27 +0200 Subject: [PATCH] Update .babelrc Signed-off-by: Marcin Kozlowski --- quantifiedcode/plugins/git/frontend/.babelrc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/quantifiedcode/plugins/git/frontend/.babelrc b/quantifiedcode/plugins/git/frontend/.babelrc index 939a41f4..95c3300e 100644 --- a/quantifiedcode/plugins/git/frontend/.babelrc +++ b/quantifiedcode/plugins/git/frontend/.babelrc @@ -1,4 +1,14 @@ { - "plugins": ["transform-es2015-parameters","transform-object-rest-spread","transform-react-jsx", "transform-es2015-modules-amd"], - "presets": ["es2015"] + "plugins": [ + "@babel/plugin-transform-parameters", + "@babel/plugin-proposal-object-rest-spread", + "@babel/plugin-transform-react-jsx", + "@babel/plugin-transform-modules-amd" + ], + "presets": ["@babel/preset-env"], + "env": { + "production": { + "plugins": ["transform-remove-console"] + } + } }