From 79dc2a4114a996d3392cd9dae4999177446858f8 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 5 Dec 2018 14:02:00 +0100 Subject: Update babelrc to compile for electron 2 --- .babelrc | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to '.babelrc') diff --git a/.babelrc b/.babelrc index 3ea65a54e..0e81c4ef9 100644 --- a/.babelrc +++ b/.babelrc @@ -1,14 +1,31 @@ { "presets": [ - "@babel/env", + [ + "@babel/preset-env", + { + "targets": { + "electron": 2 + } + } + ], "@babel/react" ], "plugins": [ - ["@babel/plugin-proposal-decorators", { "legacy": true }], + [ + "@babel/plugin-proposal-decorators", + { + "legacy": true + } + ], "@babel/proposal-export-default-from", - ["@babel/proposal-class-properties", { "loose": true }], + [ + "@babel/proposal-class-properties", + { + "loose": true + } + ], "@babel/proposal-throw-expressions", "@babel/syntax-dynamic-import" ], "sourceMaps": "inline" -} +} \ No newline at end of file -- cgit v1.2.3-70-g09d2