Skip to content

Commit

Permalink
fix(transformers): try improve hmr in vite (#3741)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Co-authored-by: Anthony Fu <github@antfu.me>
  • Loading branch information
3 people committed 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.