-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetro.config.js
More file actions
24 lines (21 loc) · 851 Bytes
/
Copy pathmetro.config.js
File metadata and controls
24 lines (21 loc) · 851 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
const { getDefaultConfig } = require("expo/metro-config");
const path = require("path");
const config = getDefaultConfig(__dirname);
// Add path alias resolver
config.resolver = {
...config.resolver,
alias: {
"@": path.resolve(__dirname, "./"),
"@src": path.resolve(__dirname, "./src"),
"@components": path.resolve(__dirname, "./src/components"),
"@contexts": path.resolve(__dirname, "./src/contexts"),
"@constants": path.resolve(__dirname, "./src/constants"),
"@styles": path.resolve(__dirname, "./src/styles"),
"@services": path.resolve(__dirname, "./src/services"),
"@types": path.resolve(__dirname, "./src/types"),
"@utils": path.resolve(__dirname, "./src/utils"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
"@assets": path.resolve(__dirname, "./assets"),
},
};
module.exports = config;