We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e1e1b21 + 187961a commit 1e5d5f8Copy full SHA for 1e5d5f8
1 file changed
examples/expo-example/metro.config.js
@@ -1,7 +1,15 @@
1
+const path = require('path');
2
const { getDefaultConfig } = require('expo/metro-config');
3
const { withNativeWind } = require('nativewind/metro');
4
5
+const libraryRoot = path.resolve(__dirname, '..', '..');
6
+
7
const config = getDefaultConfig(__dirname);
8
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
+];
14
15
module.exports = withNativeWind(config, { input: './global.css' });
0 commit comments