mirror of
https://github.com/hanzoai/dev-desktop.git
synced 2026-11-23 03:29:35 +00:00
dist/utils-*.js, presentation-*.js and useSettings-*.js carried bundled CommonJS copies of
use-sync-external-store (behind @tanstack/react-router and react-store) whose require("react") a
Vite 8 / rolldown host cannot answer: /dev threw 'Calling require for "react"' and drew 'Something
broke'. They are external now and listed as dependencies. scripts/embed-dist-check.ts fails the publish
when a file of dist calls require("react") (the minified form is n("react")) or imports a package
package.json does not list.
Verified in a Vite 8.3.8 app (React 19, the packed tarball; build+preview and dev, Chromium): 0.1.11 throws
the require error and draws nothing; this draws the workspace with no console error.
Claude-Session: https://claude.ai/code/session_015XYKLn69gF4x75RWePpDBV