-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.babelrc
48 lines (47 loc) · 1.1 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
// https://github.com/vercel/next.js/blob/canary/examples/with-styled-components/.babelrc
{
"presets": ["next/babel"],
"plugins": [
[
"module-resolver",
{
"root": ["./"],
"alias": {
"@components": "./src/components",
"@api": "./src/api",
"@models": "./src/models",
"@connectors": "./src/connectors",
"@screens": "./src/screens",
"@hooks": "./src/hooks",
"@services": "./src/services",
"@validation": "./src/validation",
"@constants": "./src/constants",
"@context": "./src/context",
"@queries": "./src/queries",
"@data": "./src/data",
"@typeDefs": "./src/types",
"@generated": "./src/generated"
}
}
],
[
"styled-components",
{
"ssr": true
}
],
"babel-plugin-transform-typescript-metadata",
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
]
]
}