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