Skip to content

Commit c797345

Browse files
committed
Add babel presets in the config file for using ES6
1 parent ea10021 commit c797345

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": [
4+
"@babel/plugin-proposal-object-rest-spread",
5+
["@babel/plugin-proposal-class-properties", { "spec": true }]
6+
]
7+
}

0 commit comments

Comments
 (0)