29 lines
654 B
JavaScript
29 lines
654 B
JavaScript
/**
|
|
* Metro configuration for React Native
|
|
* https://github.com/facebook/react-native
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
const path = require('path');
|
|
const blacklist = require('metro-config/src/defaults/blacklist');
|
|
|
|
const reactNativeBlur = path.resolve(__dirname, '..');
|
|
|
|
module.exports = {
|
|
watchFolders: [path.resolve(__dirname, 'node_modules'), reactNativeBlur],
|
|
resolver: {
|
|
blacklistRE: blacklist([
|
|
new RegExp(`${reactNativeBlur}/node_modules/react-native/.*`),
|
|
]),
|
|
},
|
|
transformer: {
|
|
getTransformOptions: async () => ({
|
|
transform: {
|
|
experimentalImportSupport: false,
|
|
inlineRequires: false,
|
|
},
|
|
}),
|
|
},
|
|
};
|