-
Notifications
You must be signed in to change notification settings - Fork 3
/
.babelrc
41 lines (38 loc) · 1.59 KB
/
.babelrc
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
34
35
36
37
38
39
40
41
{
"plugins": [
// TypeScript + JSX
["@babel/plugin-transform-typescript", {"isTSX": true, "allowDeclareFields": true}],
["@babel/plugin-transform-react-jsx", {"pragma": "preact.h", "pragmaFrag": "preact.Fragment", "useBuiltIns": true}],
["@babel/plugin-proposal-class-properties", {"loose": true}],
// ESNext
"remove-import-export",
"@babel/plugin-transform-logical-assignment-operators",
["@babel/plugin-transform-nullish-coalescing-operator", {"loose": true}],
["@babel/plugin-transform-optional-chaining", {"loose": true}],
["@babel/plugin-transform-object-rest-spread", {"loose": true, "useBuiltIns": true}],
"@babel/plugin-transform-optional-catch-binding",
"@babel/plugin-transform-exponentiation-operator",
// ES6
"@babel/plugin-transform-arrow-functions",
["@babel/plugin-transform-block-scoping", {"throwIfClosureRequired": true}],
["@babel/plugin-transform-classes", {"loose": true}],
["@babel/plugin-transform-computed-properties", {"loose": true}],
["@babel/plugin-transform-destructuring", {"loose": true, "useBuiltIns": true}],
["@babel/plugin-transform-for-of", {"assumeArray": true}],
"@babel/plugin-transform-literals",
"@babel/plugin-transform-parameters",
"@babel/plugin-transform-shorthand-properties",
["@babel/plugin-transform-spread", {"loose": true}],
["@babel/plugin-transform-template-literals", {"loose": true}],
// ES3
"@babel/plugin-transform-member-expression-literals",
"@babel/plugin-transform-property-literals"
],
"ignore": [
"src/globals.d.ts"
],
"compact": true,
"comments": false,
"retainLines": true,
"sourceMaps": true
}