diff options
author | Stefan Malzner <stefan@adlk.io> | 2018-12-05 14:02:00 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2018-12-05 14:02:00 +0100 |
commit | 79dc2a4114a996d3392cd9dae4999177446858f8 (patch) | |
tree | dd9293b97de436ee9fc1d0950c25b4f2e191e650 | |
parent | Simplify setProxy logic / use system defaults unless overwritten (diff) | |
download | ferdium-app-79dc2a4114a996d3392cd9dae4999177446858f8.tar.gz ferdium-app-79dc2a4114a996d3392cd9dae4999177446858f8.tar.zst ferdium-app-79dc2a4114a996d3392cd9dae4999177446858f8.zip |
Update babelrc to compile for electron 2
-rw-r--r-- | .babelrc | 25 |
1 files changed, 21 insertions, 4 deletions
@@ -1,14 +1,31 @@ | |||
1 | { | 1 | { |
2 | "presets": [ | 2 | "presets": [ |
3 | "@babel/env", | 3 | [ |
4 | "@babel/preset-env", | ||
5 | { | ||
6 | "targets": { | ||
7 | "electron": 2 | ||
8 | } | ||
9 | } | ||
10 | ], | ||
4 | "@babel/react" | 11 | "@babel/react" |
5 | ], | 12 | ], |
6 | "plugins": [ | 13 | "plugins": [ |
7 | ["@babel/plugin-proposal-decorators", { "legacy": true }], | 14 | [ |
15 | "@babel/plugin-proposal-decorators", | ||
16 | { | ||
17 | "legacy": true | ||
18 | } | ||
19 | ], | ||
8 | "@babel/proposal-export-default-from", | 20 | "@babel/proposal-export-default-from", |
9 | ["@babel/proposal-class-properties", { "loose": true }], | 21 | [ |
22 | "@babel/proposal-class-properties", | ||
23 | { | ||
24 | "loose": true | ||
25 | } | ||
26 | ], | ||
10 | "@babel/proposal-throw-expressions", | 27 | "@babel/proposal-throw-expressions", |
11 | "@babel/syntax-dynamic-import" | 28 | "@babel/syntax-dynamic-import" |
12 | ], | 29 | ], |
13 | "sourceMaps": "inline" | 30 | "sourceMaps": "inline" |
14 | } | 31 | } \ No newline at end of file |