-
Notifications
You must be signed in to change notification settings - Fork 1
/
metro.config.js
32 lines (29 loc) · 1.04 KB
/
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
29
30
31
32
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const defaultConfig = getDefaultConfig(__dirname);
const config = {
// When enabled, the optional code below will allow Metro to resolve
// and bundle source files with TV-specific extensions
// (e.g., *.ios.tv.tsx, *.android.tv.tsx, *.tv.tsx)
//
// Metro will still resolve source files with standard extensions
// as usual if TV-specific files are not found for a module.
//
// This code is not enabled by default, since it will impact bundling performance,
// but is available for developers who need this capability.
//
// resolver: process.env.BUILDING_FOR_TV
// ? {
// sourceExts: [].concat(
// defaultConfig.resolver.sourceExts.map(e => `tv.${e}`),
// defaultConfig.resolver.sourceExts,
// ),
// }
// : undefined,
};
module.exports = mergeConfig(defaultConfig, config);