mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-19 20:21:26 +02:00
Projects included: - maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing) - manacore (Expo mobile + SvelteKit web + Astro landing) - manadeck (NestJS backend + Expo mobile + SvelteKit web) - memoro (Expo mobile + SvelteKit web + Astro landing) This commit preserves the current state before monorepo restructuring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
No EOL
643 B
JavaScript
24 lines
No EOL
643 B
JavaScript
const { getDefaultConfig } = require('expo/metro-config');
|
|
const path = require('path');
|
|
|
|
const projectRoot = __dirname;
|
|
|
|
// Set EXPO_ROUTER_APP_ROOT for web bundling
|
|
process.env.EXPO_ROUTER_APP_ROOT = 'app';
|
|
|
|
const config = getDefaultConfig(projectRoot);
|
|
|
|
// Add cjs extension support
|
|
config.resolver.sourceExts.push('cjs');
|
|
|
|
// Ensure Metro can resolve packages from node_modules
|
|
config.resolver.nodeModulesPaths = [
|
|
path.resolve(projectRoot, 'node_modules'),
|
|
];
|
|
|
|
// Add support for shared types
|
|
config.resolver.extraNodeModules = {
|
|
'@storyteller/shared-types': path.resolve(projectRoot, 'src/shared-types'),
|
|
};
|
|
|
|
module.exports = config; |