2024-06-06 17:26:07 +00:00
|
|
|
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Metro configuration
|
|
|
|
* https://facebook.github.io/metro/docs/configuration
|
|
|
|
*
|
|
|
|
* @type {import('metro-config').MetroConfig}
|
|
|
|
*/
|
2024-06-07 12:27:15 +00:00
|
|
|
const config = {
|
|
|
|
transformer: {
|
|
|
|
assetPlugins: ['expo-asset/tools/hashAssetFiles'],
|
|
|
|
getTransformOptions: async () => ({
|
|
|
|
transform: {
|
|
|
|
experimentalImportSupport: false,
|
|
|
|
inlineRequires: false
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
2024-06-06 17:26:07 +00:00
|
|
|
|
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|