// metro.config.js
const { getDefaultConfig } = require('expo/metro-config');
const defaultConfig = getDefaultConfig(__dirname);
 
defaultConfig.resolver = {
  ...defaultConfig.resolver,
  resolverMainFields: ['react-native', 'browser', 'main'],
};
 
defaultConfig.transformer = {
  ...defaultConfig.transformer,
  getTransformOptions: async () => ({
    transform: {
      experimentalImportSupport: false,
      inlineRequires: true,
    },
  }),
};
 
module.exports = defaultConfig;