WellNuo/babel.config.js
Sergei b14360f4b6 Fix web build: React 19 JSX runtime + AuthContext hooks order
- babel.config.js: changed jsxRuntime from 'classic' to 'automatic' (React 19 requirement)
- AuthContext.tsx: reordered useEffect/useCallback to fix "Cannot access 'checkAuth' before initialization" error on web
- CLAUDE.md: added Quick Start, Git Workflow, Credentials sections

Web version now builds and runs correctly with npm run web
2026-01-12 11:56:24 -08:00

12 lines
246 B
JavaScript

module.exports = function (api) {
api.cache(true);
return {
presets: [
['babel-preset-expo', { jsxRuntime: 'automatic' }]
],
plugins: [
'react-native-reanimated/plugin',
]
};
};