File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ const getPolyfills = require('../../rn-get-polyfills');
1717const invariant = require ( 'fbjs/lib/invariant' ) ;
1818const path = require ( 'path' ) ;
1919
20- const { Config : MetroConfig } = require ( 'metro' ) ;
20+ const { Config : MetroConfig , createBlacklist } = require ( 'metro' ) ;
2121
2222const RN_CLI_CONFIG = 'rn-cli.config.js' ;
2323
@@ -56,6 +56,10 @@ const getProjectRoots = () => {
5656 return resolveSymlinksForRoots ( [ getProjectPath ( ) ] ) ;
5757} ;
5858
59+ const getBlacklistRE = ( ) => {
60+ return createBlacklist ( [ / .* \/ _ _ f i x t u r e s _ _ \/ .* / ] ) ;
61+ } ;
62+
5963/**
6064 * Module capable of getting the configuration out of a given file.
6165 *
@@ -67,6 +71,7 @@ const getProjectRoots = () => {
6771const Config = {
6872 DEFAULT : ( {
6973 ...MetroConfig . DEFAULT ,
74+ getBlacklistRE,
7075 getProjectRoots,
7176 getPolyfills,
7277 getModulesRunBeforeMainModule : ( ) => [
You can’t perform that action at this time.
0 commit comments