-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetro.config.js
More file actions
42 lines (40 loc) · 1.05 KB
/
metro.config.js
File metadata and controls
42 lines (40 loc) · 1.05 KB
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
33
34
35
36
37
38
39
40
41
42
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const path = require('path');
const defaultConfig = getDefaultConfig(__dirname);
const {
resolver: {sourceExts, assetExts},
} = defaultConfig;
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {
resolver: {
// 애플리케이션에서 사용되는 정적 파일의 확장자를 정의합니다.
assetExts: [
...assetExts,
'svg',
'png',
'bin',
'db',
'onnx',
'ort',
'gif',
'ttf',
],
// 애플리케이션의 소스 코드 파일의 확장자를 정의합니다.
sourceExts: [...sourceExts, 'json', 'jsx', 'tsx', 'ts'],
},
watchFolders: [path.resolve(__dirname, '../')],
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
},
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);