mirror of
https://github.com/hanzoai/turborepo.git
synced 2026-10-30 19:44:51 +00:00
## Description This PR upgrades the with-react-native-web example from Expo SDK 52 to SDK 55, bringing it up to date with the latest stable releases. #### Major Version Updates: - Expo: 52.0.49 → 55.0.4 - React: 18.3.1 → 19.2.0 - React DOM: 18.3.1 → 19.2.0 - React Native: 0.76.9 → 0.83.2 - React Native Web: 0.19.10/0.19.13 → 0.21.0 - TypeScript: 5.5.4/5.8.3 → 5.9.2 #### Configuration Updates: - Removed newArchEnabled from app.json (now enabled by default in SDK 55) - Removed implicit @babel/core dependency (managed by Expo) - Removed babel.config.js (only contained default preset) - Removed disableHierarchicalLookup from Metro config (no longer recommended) - Added Turbopack configuration to Next.js config for react-native-web aliasing #### Build Fixes: - Added @types/minimatch to fix TypeScript declaration generation - Configured tsup with skipLibCheck to prevent type resolution issues - Updated TypeScript configs to prevent implicit type loading #### Verification - Ran npx-expo doctor - Ran yarn install - Ran yarn turbo build - Ran yarn dev and launched the iOS and Web applications
20 lines
671 B
JavaScript
20 lines
671 B
JavaScript
// Learn more https://docs.expo.io/guides/customizing-metro
|
|
const { getDefaultConfig } = require("expo/metro-config");
|
|
const path = require("path");
|
|
|
|
// Find the workspace root, this can be replaced with `find-yarn-workspace-root`
|
|
const workspaceRoot = path.resolve(__dirname, "../..");
|
|
const projectRoot = __dirname;
|
|
|
|
const config = getDefaultConfig(projectRoot);
|
|
|
|
// 1. Watch all files within the monorepo
|
|
config.watchFolders = [workspaceRoot];
|
|
// 2. Let Metro know where to resolve packages, and in what order
|
|
config.resolver.nodeModulesPaths = [
|
|
path.resolve(projectRoot, "node_modules"),
|
|
path.resolve(workspaceRoot, "node_modules"),
|
|
];
|
|
|
|
module.exports = config;
|