-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetro.config.js
More file actions
27 lines (23 loc) · 710 Bytes
/
metro.config.js
File metadata and controls
27 lines (23 loc) · 710 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
const path = require("node:path");
const { getDefaultConfig } = require("@expo/metro-config");
const { mergeConfig } = require("@react-native/metro-config");
const defaultConfig = getDefaultConfig(__dirname);
const projectRoot = __dirname;
const monorepoRoot = path.resolve(projectRoot, "..");
/**
* Metro configuration
* https://reactnative.dev/docs/metro
*
* @type {import('@react-native/metro-config').MetroConfig}
*/
const config = {
watchFolders: [monorepoRoot],
resolver: {
nodeModulesPaths: [
path.resolve(projectRoot, "node_modules"),
path.resolve(monorepoRoot, "node_modules"),
],
unstable_enablePackageExports: true,
},
};
module.exports = mergeConfig(defaultConfig, config);