We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right now, if I have 2 or more configs that have a resolveRequest function, the one loaded last overwrites the previous functions:
const { withNxMetro } = require('@nx/expo'); const { getDefaultConfig } = require('@expo/metro-config'); const { mergeConfig } = require('metro-config'); const defaultConfig = getDefaultConfig(__dirname, { isCSSEnabled: true, }); const { assetExts, sourceExts } = defaultConfig.resolver; const customConfig = { transformer: { babelTransformerPath: require.resolve('react-native-svg-transformer'), }, resolver: { assetExts: assetExts.filter((ext) => ext !== 'svg'), sourceExts: [...sourceExts, 'cjs', 'mjs', 'svg'], }, }; module.exports = withNxMetro( mergeConfig(defaultConfig, customConfig), { // Change this to true to see debugging info. // Useful if you have issues resolving modules debug: false, // all the file extensions used for imports other than 'ts', 'tsx', 'js', 'jsx', 'json' extensions: [], // Specify folders to watch, in addition to Nx defaults (workspace libraries and node_modules) watchFolders: [], }, );
withNxMetro has a resolveRequest function. If my customConfig needs one as well. How can I resolve this?
withNxMetro
resolveRequest
customConfig
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Right now, if I have 2 or more configs that have a resolveRequest function, the one loaded last overwrites the previous functions:
withNxMetro
has aresolveRequest
function. If mycustomConfig
needs one as well. How can I resolve this?The text was updated successfully, but these errors were encountered: