Skip to content

Commit 76534a3

Browse files
committed
fix: update example project to use local package
1 parent 5f9118e commit 76534a3

File tree

3 files changed

+8974
-4017
lines changed

3 files changed

+8974
-4017
lines changed

examples/metro.config.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { getDefaultConfig } = require('expo/metro-config');
2+
const path = require('path');
3+
4+
const projectRoot = __dirname;
5+
const workspaceRoot = path.resolve(__dirname, '..');
6+
7+
const config = getDefaultConfig(projectRoot);
8+
9+
config.watchFolders = [workspaceRoot];
10+
11+
config.resolver = {
12+
...config.resolver,
13+
nodeModulesPaths: [
14+
path.join(projectRoot, 'node_modules'),
15+
path.join(workspaceRoot, 'node_modules'),
16+
],
17+
unstable_enableSymlinks: true,
18+
unstable_enablePackageExports: true,
19+
};
20+
21+
module.exports = config;

0 commit comments

Comments
 (0)