Skip to content

Commit 7525d9a

Browse files
committed
fix: issue with example metro config
1 parent ca5c22d commit 7525d9a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

examples/metro.config.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const { getDefaultConfig } = require('expo/metro-config');
2+
// const exclusionList = require('metro-config/src/defaults/exclusionList');
23
const path = require('path');
34

45
const 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+
/.*\/node_modules\/.*\/node_modules\/.*\/node_modules\/.*/,
23+
24+
// build artifacts
25+
/.*\/\.expo\/.*/,
26+
/.*\/\.turbo\/.*/,
27+
/.*\/\.next\/.*/,
28+
/.*\/coverage\/.*/,
29+
30+
// VCS and caches
31+
/.*\/\.git\/.*/,
32+
/.*\/\.cache\/.*/,
33+
34+
// optional: ignore example/demo apps in a monorepo
35+
// /.*\/examples\/.*
36+
// /.*\/example\/.*/,
37+
/.*\/e2e\/.*/,
38+
],
1739
unstable_enableSymlinks: true,
1840
unstable_enablePackageExports: true,
1941
};

0 commit comments

Comments
 (0)