-
Notifications
You must be signed in to change notification settings - Fork 11
/
.babelrc
23 lines (21 loc) · 1006 Bytes
/
.babelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"presets": [
["@babel/preset-env", { "targets": { "node": true } }],
"@babel/preset-typescript"
],
"plugins": [
// Without `loose`, the transformation uses `Object.defineProperty` which
// obeys the spec more, but we get a bundle that's 8kB larger. That was the
// default in babel v6.
["@babel/plugin-transform-class-properties", { "loose": true }],
// Like `plugin-transform-class-properties`, `loose` option is being used
// inside of this plugin as well. These plugins must have the same value,
// therefore it's set to true here.
["@babel/plugin-transform-private-methods", { "loose": true }],
// Like `plugin-transform-class-properties`, `loose` option is being used
// inside of this plugin as well. These plugins must have the same value,
// therefore it's set to true here.
["@babel/plugin-transform-private-property-in-object", { "loose": true }],
["@babel/plugin-transform-object-rest-spread", { "useBuiltIns": true }]
]
}