-
Notifications
You must be signed in to change notification settings - Fork 1
/
.babelrc.js
25 lines (23 loc) · 881 Bytes
/
.babelrc.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
module.exports = {
"plugins": [
// Stage 2; EcmaScript draft
// ["@babel/plugin-proposal-decorators", { "legacy": true }], // Decorators are cool, but looks like they're changing for the official implementation
"@babel/plugin-proposal-function-sent",
"@babel/plugin-proposal-numeric-separator",
"@babel/plugin-proposal-throw-expressions",
"@babel/plugin-proposal-export-namespace-from",
// Stage 3; EcmaScript candidate
"@babel/plugin-syntax-import-meta",
"@babel/plugin-syntax-dynamic-import",
["@babel/plugin-proposal-class-properties", { "loose": false }],
"@babel/plugin-proposal-json-strings",
// Stable
"@babel/plugin-transform-react-jsx",
"babel-plugin-transform-object-rest-spread",
"react-hot-loader/babel"
],
"presets": [
["@babel/preset-env", { "modules": false }],
"@babel/preset-react"
]
}