2019-05-22 20:15:35 +00:00
|
|
|
/**
|
|
|
|
* Metro configuration for React Native
|
|
|
|
* https://github.com/facebook/react-native
|
|
|
|
*
|
|
|
|
* @format
|
|
|
|
*/
|
|
|
|
|
2019-09-27 19:16:03 +00:00
|
|
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
2021-07-21 15:50:39 +00:00
|
|
|
const blocklist = require('metro-config/src/defaults/exclusionList');
|
2019-09-27 19:16:03 +00:00
|
|
|
|
2023-04-10 14:59:00 +00:00
|
|
|
const defaultSourceExts = require('metro-config/src/defaults/defaults').sourceExts;
|
|
|
|
|
2019-05-22 20:15:35 +00:00
|
|
|
module.exports = {
|
|
|
|
transformer: {
|
|
|
|
getTransformOptions: () => ({
|
|
|
|
transform: {
|
2021-07-21 15:50:39 +00:00
|
|
|
// experimentalImportSupport: true,
|
2022-08-08 21:02:08 +00:00
|
|
|
inlineRequires: true
|
2019-05-22 20:15:35 +00:00
|
|
|
}
|
|
|
|
})
|
2019-08-07 13:51:34 +00:00
|
|
|
},
|
2019-09-27 19:16:03 +00:00
|
|
|
maxWorkers: 2,
|
|
|
|
resolver: {
|
2022-08-19 19:53:40 +00:00
|
|
|
blocklistRE: blocklist([/ios\/Pods\/JitsiMeetSDK\/Frameworks\/JitsiMeet.framework\/assets\/node_modules\/react-native\/.*/]),
|
2023-04-10 14:59:00 +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
|
|
|
};
|