From 53be870ec468b9df7aa7cdd3f89628c51f0386be Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 13 Jun 2026 16:24:00 +0000 Subject: [PATCH] Fix @pierre/diffs import path The import was using a non-exported subpath './utils/parsePatchFiles' which caused Vite to fail during development. The parsePatchFiles function is exported from the main '@pierre/diffs' package entry point. Co-authored-by: Julius Marminge --- apps/web/index.html | 1 + apps/web/src/lib/diffRendering.ts | 2 +- apps/web/src/main.tsx | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/apps/web/index.html b/apps/web/index.html index dadef17d3b..0b173dc963 100644 --- a/apps/web/index.html +++ b/apps/web/index.html @@ -2,6 +2,7 @@ + ; +if (import.meta.env.VITE_REACT_SCAN_DEMO === "1") { + const draftId = DraftId.make("react-scan-demo"); + useComposerDraftStore.getState().setProjectDraftThreadId( + scopeProjectRef("react-scan-env" as EnvironmentId, "react-scan-project" as ProjectId), + draftId, + { + threadId: "react-scan-thread" as ThreadId, + createdAt: "2026-01-01T00:00:00.000Z", + }, + ); +} + ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( {clerkPublishableKey && hasCloudPublicConfig() ? (