File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 11const { getDefaultConfig } = require ( 'expo/metro-config' ) ;
2+ // const exclusionList = require('metro-config/src/defaults/exclusionList');
23const path = require ( 'path' ) ;
34
45const projectRoot = __dirname ;
@@ -14,6 +15,27 @@ config.resolver = {
1415 path . join ( projectRoot , 'node_modules' ) ,
1516 path . join ( workspaceRoot , 'node_modules' ) ,
1617 ] ,
18+
19+ // Ignore common explosion points
20+ blockList : [
21+ // avoid triply nested node_modules to resolve issue with using a local copy of the module
22+ / .* \/ n o d e _ m o d u l e s \/ .* \/ n o d e _ m o d u l e s \/ .* \/ n o d e _ m o d u l e s \/ .* / ,
23+
24+ // build artifacts
25+ / .* \/ \. e x p o \/ .* / ,
26+ / .* \/ \. t u r b o \/ .* / ,
27+ / .* \/ \. n e x t \/ .* / ,
28+ / .* \/ c o v e r a g e \/ .* / ,
29+
30+ // VCS and caches
31+ / .* \/ \. g i t \/ .* / ,
32+ / .* \/ \. c a c h e \/ .* / ,
33+
34+ // optional: ignore example/demo apps in a monorepo
35+ // /.*\/examples\/.*
36+ // /.*\/example\/.*/,
37+ / .* \/ e 2 e \/ .* / ,
38+ ] ,
1739 unstable_enableSymlinks : true ,
1840 unstable_enablePackageExports : true ,
1941} ;
You can’t perform that action at this time.
0 commit comments