// https://docs.expo.dev/guides/customizing-metro/ const { getDefaultConfig } = require('expo/metro-config'); const config = getDefaultConfig(__dirname); // Metro watches the whole monorepo. Keep it out of build output (Gradle, Xcode, // Next.js, tsup): those folders hold tens of thousands of files, and exhausting // the OS file-watch limit makes Metro silently stop picking up code changes. const buildOutput = [ /[/\\]apps[/\\]mobile[/\\]android[/\\]/, /[/\\]apps[/\\]mobile[/\\]ios[/\\]/, /[/\\]modules[/\\][^/\\]+[/\\]android[/\\]build[/\\]/, /[/\\]apps[/\\]web[/\\]\.next[/\\]/, /[/\\]apps[/\\]api[/\\]dist[/\\]/, /[/\\]\.turbo[/\\]/, ]; const existing = config.resolver.blockList; config.resolver.blockList = [...(Array.isArray(existing) ? existing : existing ? [existing] : []), ...buildOutput]; module.exports = config;