|
|
@ -1,12 +1,13 @@ |
|
|
|
const { getDefaultConfig } = require("metro-config"); |
|
|
|
const { getDefaultConfig } = require('expo/metro-config'); |
|
|
|
|
|
|
|
module.exports = (async () => { |
|
|
|
const { |
|
|
|
resolver: { sourceExts, assetExts }, |
|
|
|
} = await getDefaultConfig(); |
|
|
|
} = getDefaultConfig(__dirname); |
|
|
|
return { |
|
|
|
transformer: { |
|
|
|
babelTransformerPath: require.resolve("react-native-svg-transformer"), |
|
|
|
assetPlugins: ['expo-asset/tools/hashAssetFiles'], |
|
|
|
}, |
|
|
|
resolver: { |
|
|
|
assetExts: [...assetExts.filter((ext) => ext !== "svg"), "db"], |
|
|
|