Skip to content

Rebuild demo on Vite with React 19#487

Merged
adeelraza merged 4 commits into
masterfrom
demo-vite-rebuild
Jul 6, 2026
Merged

Rebuild demo on Vite with React 19#487
adeelraza merged 4 commits into
masterfrom
demo-vite-rebuild

Conversation

@adeelraza

Copy link
Copy Markdown
Contributor

Why

The demo is the public Netlify showcase, but it was the oldest code in the repo: Parcel 1.12.3 (unmaintained since 2019), TypeScript 3.4, @types/react 16, and styled-components 5, held together by Parcel aliases into the root node_modules.

What changed

  • Parcel 1 → Vite 7, TypeScript 3.4 → 6, React 18 → 19, react-router-dom 6 → 7, styled-components 5 → 6
  • Parcel's alias hack replaced with Vite resolve.dedupe so the demo and the library source share one React copy
  • Build output stays at demo/dist, so the root netlify-build script is unchanged; added demo/public/_redirects for SPA route fallback

Verification

  • npm run netlify-build produces a working production build
  • Browser smoke test: editor boots, sample design loads, onLoad/onDesignLoad/onReady all fire (verified against the modernized 2.0.0 library build)

🤖 Generated with Claude Code

adeelraza and others added 4 commits July 6, 2026 23:59
- Replace unmaintained Parcel 1.12.3 with Vite 7 (@vitejs/plugin-react)
- React 18 -> 19, react-router-dom 6 -> 7, styled-components 5 -> 6,
  TypeScript 3.4 -> 6, @types/react 16 -> 19
- Drop react-app-polyfill, react-is, and Parcel aliases; use Vite
  resolve.dedupe for react/react-dom/styled-components instead
- Modern tsconfig (bundler resolution, react-jsx, strict) with tsc
  typecheck in the build script
- Add _redirects for Netlify SPA fallback so /dashboard deep links work
- Build output stays at demo/dist, so the root netlify-build script and
  Netlify publish directory are unchanged

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The Netlify site's UI settings date from the Parcel 1 era and pin an
old Node version; Vite 7 needs Node 20.19+/22.12+. Declare the build
command, publish dir, and Node version in the repo instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The root .nvmrc pinned Node 16, which Vite 7 cannot run on; the deploy
preview failed there while local builds used a modern Node.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.71%. Comparing base (905f629) to head (ce14342).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #487   +/-   ##
=======================================
  Coverage   95.71%   95.71%           
=======================================
  Files           2        2           
  Lines          70       70           
  Branches       19       19           
=======================================
  Hits           67       67           
  Misses          1        1           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@adeelraza adeelraza merged commit 75e0f0d into master Jul 6, 2026
15 checks passed
@adeelraza adeelraza deleted the demo-vite-rebuild branch July 6, 2026 20:06
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