-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetro.config.js
More file actions
23 lines (16 loc) · 837 Bytes
/
metro.config.js
File metadata and controls
23 lines (16 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// metro.config.js
const { getDefaultConfig } = require('expo/metro-config');
const path = require('path');
const config = getDefaultConfig(__dirname);
// Add support for WASM files (needed for expo-sqlite on web)
config.resolver.assetExts.push('wasm');
// Enable web support
config.resolver.sourceExts = [...config.resolver.sourceExts, 'web.js', 'web.ts', 'web.tsx'];
// Shim for missing expo-modules-core NativeJSLogger (not available in RN 0.81.5)
config.resolver.alias = {
'expo-modules-core/src/sweet/NativeJSLogger': path.resolve(__dirname, 'shims/NativeJSLogger.ts'),
'NativeJSLogger': path.resolve(__dirname, 'shims/NativeJSLogger.ts'),
};
// Debug: Log when Metro config loads
console.log('🔧 Metro config loaded, NativeJSLogger shim:', path.resolve(__dirname, 'shims/NativeJSLogger.ts'));
module.exports = config;