Skip to content

Commit

Permalink
fix(transform-variant-group): Sourcemap warning with Nuxt (#3664)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Mar 28, 2024
1 parent f4a39b4 commit 4535639
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/shared-integration/src/transformers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export async function applyTransformers(
ctx.affectedModules.add(id)
return {
code,
map: remapping(maps, () => null) as any,
map: remapping(maps, (_, ctx) => {
ctx.content = code
return null
}) as any,
}
}
}
Expand Down

0 comments on commit 4535639

Please sign in to comment.