Skip to content

Commit

Permalink
bugfix(react-native): ignore dist folder in metro config (#9214)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi committed Mar 8, 2022
1 parent 5542936 commit abfe9db
Showing 1 changed file with 2 additions and 0 deletions.
@@ -1,5 +1,6 @@
const { withNxMetro } = require('@nrwl/react-native');
const { getDefaultConfig } = require('metro-config');
const exclusionList = require('metro-config/src/defaults/exclusionList');

module.exports = (async () => {
const {
Expand All @@ -20,6 +21,7 @@ module.exports = (async () => {
assetExts: assetExts.filter((ext) => ext !== 'svg'),
sourceExts: [...sourceExts, 'svg'],
resolverMainFields: ['sbmodern', 'browser', 'main'],
blacklistRE: exclusionList([/\.\/dist\/.*/]),
},
},
{
Expand Down

0 comments on commit abfe9db

Please sign in to comment.