aboutsummaryrefslogtreecommitdiffstats
path: root/babel.config.json
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-01 12:55:45 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-01 12:55:45 +0530
commitb46f9d5e80488e863c3e98b29c018991ccc08fc1 (patch)
tree2187c1cb4e04192090d15b4d74a96005e4e02592 /babel.config.json
parent5.6.1-nightly.10 [skip ci] (diff)
downloadferdium-app-b46f9d5e80488e863c3e98b29c018991ccc08fc1.tar.gz
ferdium-app-b46f9d5e80488e863c3e98b29c018991ccc08fc1.tar.zst
ferdium-app-b46f9d5e80488e863c3e98b29c018991ccc08fc1.zip
Migrated babel config according to https://babeljs.io/docs/en/v7-migration
Diffstat (limited to 'babel.config.json')
-rw-r--r--babel.config.json49
1 files changed, 49 insertions, 0 deletions
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 @@
1{
2 "babelrcRoots": [
3 ".",
4 "packages/*"
5 ],
6 "presets": [
7 [
8 "@babel/preset-env",
9 {
10 "targets": {
11 "electron": 13
12 }
13 }
14 ],
15 "@babel/preset-react"
16 ],
17 "plugins": [
18 [
19 "@babel/plugin-proposal-decorators",
20 {
21 "legacy": true
22 }
23 ],
24 "@babel/proposal-export-default-from",
25 [
26 "@babel/proposal-class-properties",
27 {
28 "loose": true
29 }
30 ],
31 "@babel/proposal-throw-expressions",
32 "@babel/syntax-dynamic-import",
33 [
34 "react-intl",
35 {
36 "messagesDir": "./src/i18n/messages/",
37 "enforceDescriptions": false,
38 "extractSourceLocation": true
39 }
40 ],
41 [
42 "@babel/plugin-proposal-private-methods",
43 {
44 "loose": true
45 }
46 ]
47 ],
48 "sourceMaps": "inline"
49}