const { getDefaultConfig } = require('expo/metro-config'); const config = getDefaultConfig(__dirname); // Prioritize CommonJS / require / react-native conditions to avoid ESM import.meta in web builds config.resolver.unstable_conditionNames = ['browser', 'require', 'react-native']; if (config.resolver.unstable_conditionsByPlatform) { config.resolver.unstable_conditionsByPlatform.web = ['browser', 'require', 'react-native']; } module.exports = config;