UNPKG

create-react-native-library

Version:
19 lines (15 loc) 543 B
const path = require('path'); const { getDefaultConfig } = require('<% if (example === 'expo') { -%>@expo/metro-config<% } else { -%>@react-native/metro-config<% } -%>'); const { withMetroConfig } = require('react-native-monorepo-config'); const root = path.resolve(__dirname, '..'); /** * Metro configuration * https://facebook.github.io/metro/docs/configuration * * @type {import('metro-config').MetroConfig} */ const config = withMetroConfig(getDefaultConfig(__dirname), { root, dirname: __dirname, }); module.exports = config;