|
12345678910111213141516171819202122 |
- const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
- const path = require('path');
-
- /**
- * Metro configuration
- * https://reactnative.dev/docs/metro
- *
- * @type {import('metro-config').MetroConfig}
- */
-
- const config = {
- watchFolders: [
- path.resolve(__dirname, '../../node_modules'),
- path.resolve(__dirname, '../../packages'),
- ],
- resolver: {
- unstable_enablePackageExports: true,
- unstable_conditionNames: ['browser', 'require', 'react-native'],
- },
- };
-
- module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|