1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
| const path = require('path');
| /**
| * Metro configuration
| * https://facebook.github.io/metro/docs/configuration
| *
| * @type {import('metro-config').MetroConfig}
| */
| const config = {
| watchFolders: [
| path.resolve(__dirname, '..'), // Ensure Metro watches the lib folder
| ],
| resolver: {
| sourceExts: ['tsx', 'ts', 'jsx', 'js', 'json'], // Ensure TypeScript files are recognized
| assetExts: ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'ico', 'webp', 'svg', 'ort', 'onnx'],
| },
| };
| module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|
|