From 06100a5506942b8f63d4a1094461df3e0b820579 Mon Sep 17 00:00:00 2001 From: ArizeSky <97787713+ArizeSky@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:12:53 +0800 Subject: [PATCH] fix(webview): rewrite dynamic imports only inside script bodies The root-absolute import("/...") rewrite ran over the whole document, so visible text such as
import("/x")
was rewritten too. Run the specifier rewrite per `, + CAP + ); + expect(out).toContain(`import("${PREFIX}_app/a.js")`); + expect(out).toContain(`import('${PREFIX}b.js')`); + }); + it('rebases root-absolute src/href/action, which cannot fix', () => { const out = rewriteHtml( `
`,