Skip to content

refactor: migrate from Create React App to Vite#156

Merged
magnus-madsen merged 2 commits intomasterfrom
migrate-to-vite
Mar 24, 2026
Merged

refactor: migrate from Create React App to Vite#156
magnus-madsen merged 2 commits intomasterfrom
migrate-to-vite

Conversation

@magnus-madsen
Copy link
Member

@magnus-madsen magnus-madsen commented Mar 24, 2026

Summary

  • Replace react-scripts (CRA) with Vite 8 + @vitejs/plugin-react for faster dev server startup and builds
  • Rename all .js files containing JSX to .jsx (Vite convention)
  • Clean up CRA-specific config (eslintConfig, browserslist, homepage, overrides) from package.json
  • Move index.html from public/ to project root with explicit <script type="module"> entry point
  • No source code changes — all component files are identical, only extensions changed

Test plan

  • npm run dev — verify dev server starts, pages render, Ace editor loads with Flix highlighting, WebSocket connects
  • npm run build — verify production build completes to dist/
  • npm run preview — verify production build serves correctly with client-side routing

🤖 Generated with Claude Code

magnus-madsen and others added 2 commits March 24, 2026 23:16
Replace react-scripts with Vite 8 and @vitejs/plugin-react for faster
dev server and builds. Rename all JSX-containing .js files to .jsx.
No source code changes — only build tooling and file extensions.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Vite 8 requires Node 20+. Bump matrix from 18.x to 22.x and update
checkout/setup-node actions from v2 to v4.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@magnus-madsen magnus-madsen merged commit 606fc9c into master Mar 24, 2026
1 check passed
@magnus-madsen magnus-madsen deleted the migrate-to-vite branch March 24, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant