From 5976ab823622b018158c046fd8a9a4bb3e2877bb Mon Sep 17 00:00:00 2001 From: daishi Date: Fri, 20 Mar 2026 13:13:47 +0900 Subject: [PATCH] fix(minimal/client): do not pass findSourceMapURL unnecessarily --- packages/waku/src/minimal/client.tsx | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/packages/waku/src/minimal/client.tsx b/packages/waku/src/minimal/client.tsx index 6e65cc214c..9c1f8ed279 100644 --- a/packages/waku/src/minimal/client.tsx +++ b/packages/waku/src/minimal/client.tsx @@ -71,18 +71,6 @@ const mergeElementsPromise = ( return getCached(getResult, cache2, b); }; -// Keep this local for now. -// Importing the helper from @vitejs/plugin-rsc pulls in its browser runtime, -// which breaks Node-side tests. -// TODO -// If upstream exposes a lighter shared entry for this helper, switch to that. -const findSourceMapURL = (fileName: string, environmentName: string) => { - const url = new URL('/__vite_rsc_findSourceMapURL', import.meta.url); - url.searchParams.set('filename', fileName); - url.searchParams.set('environmentName', environmentName); - return url.toString(); -}; - type SetElements = ( updater: (prev: Promise) => Promise, ) => void; @@ -207,10 +195,7 @@ const fetchRscInternal: FetchRscInternal = ( return createFromFetch(checkStatus(responsePromise), { callServer: (funcId: string, args: unknown[]) => unstable_callServerRsc(funcId, args, () => fetchRscStore), - ...(import.meta.hot && { - debugChannel: debug?.debugChannel, - findSourceMapURL, - }), + debugChannel: debug?.debugChannel, temporaryReferences, }); };