Skip to content

Commit 1e5d5f8

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/npm_and_yarn-2082dd1f7d
2 parents e1e1b21 + 187961a commit 1e5d5f8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
const path = require('path');
12
const { getDefaultConfig } = require('expo/metro-config');
23
const { withNativeWind } = require('nativewind/metro');
34

5+
const libraryRoot = path.resolve(__dirname, '..', '..');
6+
47
const config = getDefaultConfig(__dirname);
58
config.resolver.unstable_enableSymlinks = true;
9+
config.watchFolders = [libraryRoot];
10+
config.resolver.nodeModulesPaths = [path.resolve(__dirname, 'node_modules')];
11+
config.resolver.blockList = [
12+
new RegExp(path.resolve(libraryRoot, 'node_modules') + '/.*'),
13+
];
614

715
module.exports = withNativeWind(config, { input: './global.css' });

0 commit comments

Comments
 (0)