mirror of
https://github.com/standardnotes/mobile.git
synced 2026-04-19 13:49:03 -04:00
23 lines
578 B
JavaScript
23 lines
578 B
JavaScript
const { getDefaultConfig } = require('metro-config');
|
|
|
|
module.exports = (async () => {
|
|
const {
|
|
resolver: { sourceExts, assetExts },
|
|
} = await getDefaultConfig();
|
|
return {
|
|
transformer: {
|
|
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
getTransformOptions: async () => ({
|
|
transform: {
|
|
experimentalImportSupport: false,
|
|
inlineRequires: false,
|
|
},
|
|
}),
|
|
},
|
|
resolver: {
|
|
assetExts: assetExts.filter(ext => ext !== 'svg'),
|
|
sourceExts: [...sourceExts, 'svg'],
|
|
},
|
|
};
|
|
})();
|