19 lines
522 B
JavaScript
19 lines
522 B
JavaScript
const { getDefaultConfig } = require("expo/metro-config");
|
|
|
|
module.exports = (() => {
|
|
const config = getDefaultConfig(__dirname);
|
|
|
|
const { transformer, resolver } = config;
|
|
|
|
config.transformer = {
|
|
...transformer,
|
|
babelTransformerPath: require.resolve("react-native-svg-transformer/expo")
|
|
};
|
|
config.resolver = {
|
|
...resolver,
|
|
assetExts: resolver.assetExts.filter((ext) => ext !== "svg"),
|
|
sourceExts: [...resolver.sourceExts, "svg"]
|
|
};
|
|
|
|
return config;
|
|
})(); |