mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-02-18 11:17:11 +00:00
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,
|
||
|
},
|
||
|
}),
|
||
|
},
|
||
|
};
|