2025-02-04 17:53:20 +00:00
|
|
|
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
2021-05-11 17:34:40 +00:00
|
|
|
const path = require('path');
|
2025-02-04 17:53:20 +00:00
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
],
|
2021-05-11 17:34:40 +00:00
|
|
|
resolver: {
|
2025-02-04 17:53:20 +00:00
|
|
|
sourceExts: ['tsx', 'ts', 'jsx', 'js', 'json'], // Ensure TypeScript files are recognized
|
2021-05-11 17:34:40 +00:00
|
|
|
},
|
|
|
|
|
};
|
2025-02-04 17:53:20 +00:00
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|