|
2 | 2 |
|
3 | 3 | const { getSentryExpoConfig } = require('@sentry/react-native/metro'); |
4 | 4 | //const { getDefaultConfig } = require('expo/metro-config'); |
5 | | -const path = require('path'); |
| 5 | +//const path = require('path'); |
6 | 6 | const { withNativeWind } = require('nativewind/metro'); |
7 | 7 |
|
8 | | -const projectRoot = __dirname; |
9 | | -//const config = getDefaultConfig(projectRoot, { |
10 | | -// isCSSEnabled: true, |
11 | | -//}); |
12 | | - |
13 | 8 | const config = getSentryExpoConfig(__dirname, { |
14 | 9 | isCSSEnabled: true, |
15 | 10 | }); |
16 | 11 |
|
17 | 12 | // 1. Watch all files within the monorepo |
18 | 13 | // 2. Let Metro know where to resolve packages and in what order |
19 | | -config.resolver.nodeModulesPaths = [path.resolve(projectRoot, 'node_modules')]; |
| 14 | +//config.resolver.nodeModulesPaths = [path.resolve(__dirname, 'node_modules')]; |
20 | 15 |
|
21 | 16 | // Configure path aliases |
22 | | -config.resolver.extraNodeModules = { |
23 | | - '@': path.resolve(__dirname, 'src'), |
24 | | - '@env': path.resolve(__dirname, 'src/lib/env.js'), |
25 | | - '@assets': path.resolve(__dirname, 'assets'), |
26 | | -}; |
| 17 | +//config.resolver.extraNodeModules = { |
| 18 | +// '@': path.resolve(__dirname, 'src'), |
| 19 | +// '@env': path.resolve(__dirname, 'src/lib/env.js'), |
| 20 | +// '@assets': path.resolve(__dirname, 'assets'), |
| 21 | +//}; |
27 | 22 |
|
28 | 23 | module.exports = withNativeWind(config, { input: './global.css', inlineRem: 16 }); |
0 commit comments