mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-13 22:41:02 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user