onnxruntime/js/react_native/e2e/metro.config.js
Jian Chen b2560a75cf
Update react-native to 0.72 (#23509)
…-andriod-e2e-test-job.yml

### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
2025-02-04 09:53:20 -08:00

17 lines
543 B
JavaScript

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
},
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);