From 22ff26162b68717e47d7adff0b0ce21e34179101 Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Tue, 14 May 2024 07:16:51 +0800 Subject: [PATCH] fix(transformers): try improve hmr in vite (#3741) Co-authored-by: Anthony Fu Co-authored-by: Anthony Fu --- packages/shared-integration/src/transformers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/shared-integration/src/transformers.ts b/packages/shared-integration/src/transformers.ts index 3da8c49b29..ece7418806 100644 --- a/packages/shared-integration/src/transformers.ts +++ b/packages/shared-integration/src/transformers.ts @@ -40,7 +40,8 @@ export async function applyTransformers( } if (code !== original) { - ctx.affectedModules.add(id) + // Investigate if this is safe to remove: https://github.com/unocss/unocss/pull/3741 + // ctx.affectedModules.add(id) return { code, map: remapping(maps, (_, ctx) => {