From 7b02a9a36b48a645c864cc6fdbbbbf352e6df0f9 Mon Sep 17 00:00:00 2001 From: zhangHongEn Date: Mon, 25 Nov 2024 12:49:31 +0800 Subject: [PATCH] fix: #180 Circular Import --- src/plugins/pluginAddEntry.ts | 1 + src/plugins/pluginProxyRemoteEntry.ts | 24 ++++++++++++++++++++++++ src/virtualModules/virtualRemoteEntry.ts | 19 ++++++++++++++++--- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/plugins/pluginAddEntry.ts b/src/plugins/pluginAddEntry.ts index d7d35ad..5cd4465 100644 --- a/src/plugins/pluginAddEntry.ts +++ b/src/plugins/pluginAddEntry.ts @@ -55,6 +55,7 @@ const addEntry = ({ }); }, transformIndexHtml(c) { + if (inject !== 'html') return; return c.replace( '', `