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
|
|
|
|
2019-05-22 20:15:35 +00:00
|
|
|
module.exports = {
|
|
|
|
transformer: {
|
|
|
|
getTransformOptions: () => ({
|
|
|
|
transform: {
|
2021-07-21 15:50:39 +00:00
|
|
|
// experimentalImportSupport: true,
|
|
|
|
// https://github.com/storybookjs/react-native/issues/152
|
|
|
|
inlineRequires: false
|
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: {
|
2021-07-21 15:50:39 +00:00
|
|
|
blocklistRE: blocklist([
|
2019-09-27 19:16:03 +00:00
|
|
|
/ios\/Pods\/JitsiMeetSDK\/Frameworks\/JitsiMeet.framework\/assets\/node_modules\/react-native\/.*/
|
|
|
|
])
|
|
|
|
}
|
2019-05-22 20:15:35 +00:00
|
|
|
};
|