Co-authored-by: varnit goyal <github.cicd@navi.com> Co-authored-by: Varnit Goyal <varnit.goyal@navi.com>
23 lines
534 B
JavaScript
23 lines
534 B
JavaScript
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
const { withSentryConfig } = require('@sentry/react-native/metro');
|
|
|
|
/**
|
|
* Metro configuration for React Native
|
|
* https://github.com/facebook/react-native
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
const config = withSentryConfig({
|
|
transformer: {
|
|
getTransformOptions: async () => ({
|
|
transform: {
|
|
experimentalImportSupport: false,
|
|
inlineRequires: false,
|
|
},
|
|
}),
|
|
},
|
|
});
|
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|