2023-06-30 20:45:36 +00:00
|
|
|
// /**
|
|
|
|
// * Metro configuration for React Native
|
|
|
|
// * https://github.com/facebook/react-native
|
|
|
|
// *
|
|
|
|
// * @format
|
|
|
|
// */
|
|
|
|
|
|
|
|
// // eslint-disable-next-line import/no-extraneous-dependencies
|
|
|
|
// const blocklist = require('metro-config/src/defaults/exclusionList');
|
|
|
|
|
|
|
|
// const defaultSourceExts = require('metro-config/src/defaults/defaults').sourceExts;
|
2019-05-22 20:15:35 +00:00
|
|
|
|
2023-06-30 20:45:36 +00:00
|
|
|
// module.exports = {
|
|
|
|
// transformer: {
|
|
|
|
// getTransformOptions: () => ({
|
|
|
|
// transform: {
|
|
|
|
// // experimentalImportSupport: true,
|
|
|
|
// inlineRequires: true
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// },
|
|
|
|
// maxWorkers: 2,
|
|
|
|
// resolver: {
|
|
|
|
// resolverMainFields: ['sbmodern', 'react-native', 'browser', 'main'],
|
|
|
|
// sourceExts: process.env.RUNNING_E2E_TESTS ? ['mock.ts', ...defaultSourceExts] : defaultSourceExts
|
|
|
|
// }
|
|
|
|
// };
|
2019-09-27 19:16:03 +00:00
|
|
|
|
2023-06-30 20:45:36 +00:00
|
|
|
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
2023-04-10 14:59:00 +00:00
|
|
|
|
2023-06-30 20:45:36 +00:00
|
|
|
/**
|
|
|
|
* Metro configuration
|
|
|
|
* https://facebook.github.io/metro/docs/configuration
|
|
|
|
*
|
|
|
|
* @type {import('metro-config').MetroConfig}
|
|
|
|
*/
|
|
|
|
const config = {
|
|
|
|
// transformer: {
|
|
|
|
// getTransformOptions: () => ({
|
|
|
|
// transform: {
|
|
|
|
// // experimentalImportSupport: true,
|
|
|
|
// inlineRequires: true
|
|
|
|
// }
|
|
|
|
// })
|
|
|
|
// },
|
|
|
|
// maxWorkers: 2,
|
2019-09-27 19:16:03 +00:00
|
|
|
resolver: {
|
2023-06-30 20:45:36 +00:00
|
|
|
resolverMainFields: ['sbmodern', 'react-native', 'browser', 'main']
|
|
|
|
// sourceExts: process.env.RUNNING_E2E_TESTS ? ['mock.ts', ...defaultSourceExts] : defaultSourceExts
|
2019-09-27 19:16:03 +00:00
|
|
|
}
|
2019-05-22 20:15:35 +00:00
|
|
|
};
|
2023-06-30 20:45:36 +00:00
|
|
|
|
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|