Skip to content

Commit

Permalink
fix(transformers): try improve hmr in vite (unocss#3741)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <[email protected]>
Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
3 people authored May 13, 2024
1 parent dd0139b commit 22ff261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/shared-integration/src/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 22ff261

Please sign in to comment.