-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.babelrc.js
More file actions
28 lines (28 loc) · 774 Bytes
/
.babelrc.js
File metadata and controls
28 lines (28 loc) · 774 Bytes
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
/**
* Configure Babel - this transforms Typescript to Javascript
* Using Babel is much quicker and friendlier than using tsc directly
*/
module.exports = {
"presets": [
// transforms Typescript to Javascript
// https://babeljs.io/docs/en/babel-preset-typescript
"@babel/typescript",
[
// allow using current Javascript without micromanaging transforms
"@babel/preset-env",
{
"targets": {
// we're building for node, so this is our target
"node": "current"
}
}
],
// allow using JSX syntax
"@babel/preset-react"
],
"plugins": [
// a couple plugins to get additional Javascript features
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread"
]
}