diff options
Diffstat (limited to '.babelrc')
-rw-r--r-- | .babelrc | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -1,19 +1,14 @@ | |||
1 | { | 1 | { |
2 | "presets": [ | 2 | "presets": [ |
3 | [ | 3 | "@babel/env", |
4 | "babel-preset-env", | 4 | "@babel/react" |
5 | { | ||
6 | "targets": { | ||
7 | "electron": "1.7.2" | ||
8 | } | ||
9 | } | ||
10 | ], | ||
11 | "babel-preset-react" | ||
12 | ], | 5 | ], |
13 | "plugins": [ | 6 | "plugins": [ |
14 | "transform-decorators-legacy", | 7 | ["@babel/plugin-proposal-decorators", { "legacy": true }], |
15 | "transform-flow-strip-types", | 8 | "@babel/proposal-export-default-from", |
16 | "transform-class-properties", | 9 | ["@babel/proposal-class-properties", { "loose": true }], |
10 | "@babel/proposal-throw-expressions", | ||
11 | "@babel/syntax-dynamic-import" | ||
17 | ], | 12 | ], |
18 | "sourceMaps": "inline" | 13 | "sourceMaps": "inline" |
19 | } | 14 | } |