UNPKG

react-native-image-filter-kit

Version:
40 lines (35 loc) 1.08 kB
/** * Metro configuration for React Native * https://github.com/facebook/react-native * * @format */ const path = require('path') const blacklist = require('metro-config/src/defaults/exclusionList') const packagePath = path.resolve(__dirname, '../../') const hazeRemovalPath = path.resolve( __dirname, 'local_modules/react-native-image-filter-kit-haze-removal' ) const extraNodeModules = { react: path.resolve(__dirname, 'node_modules/react'), 'react-native': path.resolve(__dirname, 'node_modules/react-native'), '@babel/runtime': path.resolve(__dirname, 'node_modules/@babel/runtime'), 'react-native-image-filter-kit': packagePath, 'react-native-image-filter-kit-haze-removal': hazeRemovalPath } module.exports = { resolver: { extraNodeModules, blockList: blacklist([/^src[/\\].*/, /^examples[/\\]\w+[/\\]src[/\\].*/]) }, watchFolders: [packagePath, hazeRemovalPath], transformer: { getTransformOptions: async () => ({ transform: { experimentalImportSupport: false, inlineRequires: false } }) } }