From dc2e7c9a19ea7b8ee9c5c6fd23228a7be0a53e99 Mon Sep 17 00:00:00 2001 From: Peyton-Spencer Date: Sun, 8 Feb 2026 19:25:12 -0500 Subject: [PATCH] fix: use virtual module for runtime auto-import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous approach injected an inline ``; + // Serve the virtual init module through Vite's transform pipeline + configureServer(server: ViteDevServer) { + server.middlewares.use((req, _res, next) => { + // Rewrite the URL so Vite's built-in module serving handles it + if (req.url === "/@solid-grab/init") { + req.url = `/@id/${VIRTUAL_INIT}`; + } + next(); + }); + }, - return html.replace("", `${script}\n`); + // Inject a