2024-11-20 10:47:47 +05:30
|
|
|
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
2024-11-11 16:56:00 +05:30
|
|
|
const { withSentryConfig } = require('@sentry/react-native/metro');
|
2024-11-11 16:25:08 +05:30
|
|
|
|
2022-11-30 10:13:33 +05:30
|
|
|
/**
|
|
|
|
|
* Metro configuration for React Native
|
|
|
|
|
* https://github.com/facebook/react-native
|
|
|
|
|
*
|
|
|
|
|
* @format
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-20 10:47:47 +05:30
|
|
|
const config = withSentryConfig({
|
2023-04-20 13:07:30 +05:30
|
|
|
transformer: {
|
|
|
|
|
getTransformOptions: async () => ({
|
|
|
|
|
transform: {
|
|
|
|
|
experimentalImportSupport: false,
|
|
|
|
|
inlineRequires: false,
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
},
|
2024-11-11 16:56:00 +05:30
|
|
|
});
|
2024-11-20 10:47:47 +05:30
|
|
|
|
|
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|