After activating MetroConfig.create in metro.config.js for custom mapping, logger breaks and nothing logged to console, may be other features of metro disabling as well. That happens when I'm trying to mix evaDesign config with svg setup for react-native svg.
Also default setup for Metro-config by ui-kitten throws warnings in console:
To Reproduce
Add ui-kitten and react-native svg babel transformer
🐛 Bug Report
After activating MetroConfig.create in metro.config.js for custom mapping, logger breaks and nothing logged to console, may be other features of metro disabling as well. That happens when I'm trying to mix evaDesign config with svg setup for react-native svg.
Also default setup for Metro-config by ui-kitten throws warnings in console:
To Reproduce
const MetroConfig = require('@ui-kitten/metro-config');
const evaConfig = { evaPackage: '@eva-design/eva', // Optional, but may be useful when using mapping customization feature. customMappingPath: './src/consts/mapping.json', }; module.exports = (async () => { const { resolver: { sourceExts, assetExts }, } = await getDefaultConfig(__dirname);
const config = { transformer: { babelTransformerPath: require.resolve('react-native-svg-transformer'), getTransformOptions: async () => ({ transform: { experimentalImportSupport: false, inlineRequires: true, }, }), }, resolver: { assetExts: assetExts.filter((ext) => ext !== 'svg'), sourceExts: [...sourceExts, 'svg'], }, }; return MetroConfig.create(evaConfig, config); })();