-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.babelrc
48 lines (48 loc) · 1.88 KB
/
.babelrc
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": ["last 2 versions", "not dead", "> 0.2%"],
"esmodules": true
},
"useBuiltIns": "usage",
"corejs": { "version": 3, "proposals": true },
// Enable "loose" transformations for any plugins in this preset that allow them
"loose": true,
// Enable bugfixes that allow Babel to produce smaller output in some cases
"bugfixes": true,
// Preserve ES modules. Set to false to not transform modules, or specify a module type
"modules": false
}
],
// Add the TypeScript preset if your project uses TypeScript
"@babel/preset-typescript"
],
"plugins": [
// "@babel/plugin-syntax-dynamic-import",
// "@babel/plugin-transform-runtime",
// Stage 2 proposal decorators
// ["@babel/plugin-proposal-decorators", { "legacy": true }],
// Class properties (public and private)
// ["@babel/plugin-proposal-class-properties", { "loose": true }],
// Optional chaining and nullish coalescing
// "@babel/plugin-proposal-optional-chaining",
// "@babel/plugin-proposal-nullish-coalescing-operator",
// Transform styled components (if your project uses styled-components)
// ["babel-plugin-styled-components", { "displayName": true, "pure": true }]
],
"env": {
// "test": {
// "presets": [
// ["@babel/preset-env", { "targets": { "node": "current" } }],
// "@babel/preset-typescript",
// "@babel/preset-react"
// ],
// "plugins": [
// "babel-plugin-dynamic-import-node"
// ]
// }
}
}