-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
babel.config.js
33 lines (33 loc) · 1.15 KB
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// babel.config.js
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-react",
"@babel/preset-typescript",
],
plugins: [
"@babel/plugin-syntax-jsx",
"@babel/plugin-transform-react-jsx",
["@babel/plugin-proposal-class-properties", { loose: true }],
"syntax-trailing-function-commas",
[
"@babel/plugin-proposal-object-rest-spread",
{ loose: true, useBuiltIns: true },
],
["@babel/plugin-transform-template-literals", { loose: true }],
"@babel/plugin-transform-literals",
"@babel/plugin-transform-arrow-functions",
"@babel/plugin-transform-block-scoped-functions",
"@babel/plugin-transform-object-super",
"@babel/plugin-transform-shorthand-properties",
"@babel/plugin-transform-computed-properties",
"@babel/plugin-transform-for-of",
["@babel/plugin-transform-spread", { loose: true, useBuiltIns: true }],
"@babel/plugin-transform-parameters",
[
"@babel/plugin-transform-destructuring",
{ loose: true, useBuiltIns: true },
],
["@babel/plugin-transform-block-scoping", { throwIfClosureRequired: true }],
],
};