1234567891011121314151617 |
- const { getDefaultConfig } = require('metro-config');
- module.exports = (async () => {
- const {
- resolver: { sourceExts, assetExts },
- } = await getDefaultConfig();
- return {
- transformer: {
- assetPlugins: ['expo-asset/tools/hashAssetFiles'],
- babelTransformerPath: require.resolve('react-native-svg-transformer'),
- },
- resolver: {
- assetExts: assetExts.filter(ext => ext !== 'svg').concat(['tflite', 'txt']),
- sourceExts: [...sourceExts, 'svg'],
- },
- };
- })();
|