-
Notifications
You must be signed in to change notification settings - Fork 19
/
.babelrc
21 lines (21 loc) · 977 Bytes
/
.babelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
// Enabling the following 2 presets for now:
// - env is a Babel preset that automatically determines the Babel plugins you need based on your supported environments. Uses compat-table.
// - react strips flow types and transform JSX into createElement calls.
"presets": ["@babel/typescript", "@babel/react", "@babel/env"],
// Limit Babel to compile only JSX files. No longer used because we want to be able to use JSX inside all JS files
//"only": [
// "*.jsx"
//],
"compact": false,
// Keeps same line breaks, but wacky code
//"retainLines": true,
"plugins": [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-class-properties", { "loose": true }],
["@babel/plugin-proposal-object-rest-spread", { "loose": true, "useBuiltIns": true }],
["@babel/plugin-proposal-private-methods", { "loose": true }],
["@babel/plugin-proposal-private-property-in-object", { "loose": true }],
],
}