From 25ccad51efb818ec63e79c50f15d3a74aa7c3823 Mon Sep 17 00:00:00 2001 From: cgradusov <77288439+cgradusov@users.noreply.github.com> Date: Fri, 15 May 2026 17:53:07 +0300 Subject: [PATCH 1/4] fix(svelte): repaint PreviewRender on non-Vite builder HMR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Svelte 5's `$.hmr(Component)` returns an identity-stable proxy across hot-updates. PreviewRender's `$derived.by(() => storyFn())` compared the returned `{ Component, props }` by identity, saw the same proxy reference, and never re-fired — so on any non-Vite builder (webpack5, Rspack) the renderer froze on the pre-HMR component code. State was preserved on the mounted instance, but the new code never reached the DOM. Track HMR cycles in a ` +