Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const defaultSourceExts = require('metro-config/src/defaults/defaults').sourceExts
const exclusionList = require('metro-config/src/defaults/exclusionList')
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
babelTransformerPath: require.resolve('react-native-svg-transformer'),
},
resolver: {
extraNodeModules: require('node-libs-react-native'),
assetExts: defaultAssetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...defaultSourceExts, 'svg'],
blacklistRE: exclusionList([/\.gomobile-cache\/.*/]),
},
}