forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metro.config.js
28 lines (26 loc) · 918 Bytes
/
metro.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*/
const {getDefaultConfig} = require('metro-config');
/* eslint arrow-body-style: 0 */
module.exports = (() => {
return getDefaultConfig()
.then((config) => {
return {
resolver: {
assetExts: config.resolver.assetExts.filter(ext => ext !== 'svg'),
sourceExts: ['jsx', 'js', 'ts', 'tsx', 'json', 'svg'],
},
transformer: {
getTransformOptions: () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
babelTransformerPath: require.resolve('react-native-svg-transformer'),
},
};
});
})();