Skip to content

chore: migrate CRA to Vite; patch CVEs; bump minor#31

Open
Kevintjuhz wants to merge 2 commits intomainfrom
chore/vite-migration
Open

chore: migrate CRA to Vite; patch CVEs; bump minor#31
Kevintjuhz wants to merge 2 commits intomainfrom
chore/vite-migration

Conversation

@Kevintjuhz
Copy link
Copy Markdown
Member

Summary

  • Migrates react-quick-start from Create React App (react-scripts, unmaintained, critical form-data CVE) to Vite 8 + @vitejs/plugin-react 6.
  • Replaces process.env.REACT_APP_* with import.meta.env.VITE_*, renames .js entry files to .jsx, moves public/index.html to root.
  • Bumps remaining deps (@apollo/client, graphql, react, react-dom, react-router-dom) to latest minor within their current major.
  • Drops: react-scripts, webpack, @eslint/config-array, @eslint/object-schema.
  • npm audit: was 49 vulns (1 critical, 22 high, 14 mod, 12 low) → 0 vulns.

Test plan

  • npm install resolves cleanly
  • npm run build produces dist/ (verified: 454 KB bundle, 167 ms)
  • npm run dev boots on :3000 (verified: Vite 8.0.10 ready)
  • Manual test: list of posts loads on /, clicking a post loads /:slug
  • .env.example rename noted in README if needed

Kevintjuhz and others added 2 commits April 24, 2026 17:51
- Replaces react-scripts (EOL, critical form-data CVE) with Vite 8 +
  @vitejs/plugin-react 6.
- Adds vite.config.js; moves public/index.html to root and strips the
  CRA %PUBLIC_URL% template.
- Renames src/*.js entrypoints to *.jsx.
- Switches env var prefix REACT_APP_ -> VITE_ and swaps process.env for
  import.meta.env in the Apollo client.
- Bumps remaining deps (@apollo/client, graphql, react, react-dom,
  react-router-dom) to latest minor within current major.
- npm audit now reports 0 vulnerabilities (was 49, including 1 critical).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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