expo template
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// Learn more: https://docs.expo.dev/guides/monorepos/
|
||||
const { getDefaultConfig } = require('expo/metro-config');
|
||||
const path = require('path');
|
||||
|
||||
const projectRoot = __dirname;
|
||||
const monorepoRoot = path.resolve(projectRoot, '../..');
|
||||
|
||||
const config = getDefaultConfig(projectRoot);
|
||||
|
||||
// Watch the whole monorepo so changes in packages/* trigger rebuilds.
|
||||
config.watchFolders = [monorepoRoot];
|
||||
|
||||
// Resolve modules from the app's node_modules first, then the workspace root.
|
||||
config.resolver.nodeModulesPaths = [
|
||||
path.resolve(projectRoot, 'node_modules'),
|
||||
path.resolve(monorepoRoot, 'node_modules'),
|
||||
];
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user