- Replace @vitejs/plugin-react with @vitejs/plugin-react-swc to fix
React Refresh preamble detection error in cross-origin Docker setup
- Register React components manually via window.resolveReactComponent
since ux-react's registerReactControllerComponents uses Webpack's
require.context API which is incompatible with Vite
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The app is served on port 80 while Vite runs on 5173. The React
plugin needs proper CORS and HMR host config to inject its preamble.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>