-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.babelrc.js
36 lines (34 loc) · 1.13 KB
/
.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
26
27
28
29
30
31
32
33
34
35
36
const path = require("path");
module.exports= {"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": "last 5 versions"
}
}
],
["@babel/preset-react", {"runtime": "automatic"}],
],
"plugins": [
["module-resolver", {
"root": ["./src"],
"alias": {
"@": path.resolve(__dirname, "./src"),
"@components": path.resolve(__dirname, "./src/components"),
"@common": path.resolve(__dirname, "./src/common"),
"@constants": path.resolve(__dirname, "./src/constants"),
"@helpers": path.resolve(__dirname, "./src/helpers"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
"@icons": path.resolve(__dirname, "./src/icons"),
"@images": path.resolve(__dirname, "./src/images"),
"@layout": path.resolve(__dirname, "./src/layout"),
"@pages": path.resolve(__dirname, "./src/pages"),
"@routes": path.resolve(__dirname, "./src/routes"),
"@store": path.resolve(__dirname, "./src/store"),
"@providers": path.resolve(__dirname, "./src/providers"),
"@styles": path.resolve(__dirname, "./src/styles")
}
}]
]
}