fix: Resolve mobile app crash with import.meta and babel config

- Add guard for import.meta in endpoints.ts for React Native compatibility
- Add jsEngine: jsc to app.json to match gradle.properties
- Add @babel/plugin-transform-class-static-block for @pezkuwi/types-codec
This commit is contained in:
2026-01-20 01:28:56 +03:00
parent b74df16210
commit 2e0b5d73fd
6 changed files with 1477 additions and 52 deletions
+9 -1
View File
@@ -10,8 +10,16 @@ const config = getDefaultConfig(__dirname);
// ============================================
const projectRoot = __dirname;
const workspaceRoot = path.resolve(projectRoot, '..');
// Use default watchFolders (no custom configuration)
// Watch folders - include shared directory for cross-project imports
config.watchFolders = [workspaceRoot];
// Tell Metro where to resolve packages (both project and workspace node_modules)
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, 'node_modules'),
path.resolve(workspaceRoot, 'node_modules'),
];
// ============================================
// CUSTOM MODULE RESOLUTION