Skip to content

Commit

Permalink
fix: generate sourcemap with hires (#687) (#688)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
lishaobos and antfu authored Sep 14, 2023
1 parent 232a0f4 commit 7321c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function transformer(ctx: Context, transformer: SupportedTransfor

const result: TransformResult = { code: s.toString() }
if (ctx.sourcemap)
result.map = s.generateMap({ source: id, includeContent: true })
result.map = s.generateMap({ source: id, includeContent: true, hires: 'boundary' })
return result
}
}

0 comments on commit 7321c6a

Please sign in to comment.