From 7321c6a66addd2b1d7ffac885d6e2f9d2972b8e3 Mon Sep 17 00:00:00 2001 From: lishaobos <46661044+lishaobos@users.noreply.github.com> Date: Thu, 14 Sep 2023 10:03:24 +0800 Subject: [PATCH] fix: generate sourcemap with hires (#687) (#688) Co-authored-by: Anthony Fu --- src/core/transformer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/transformer.ts b/src/core/transformer.ts index 5f94bbfd..f8c5a672 100644 --- a/src/core/transformer.ts +++ b/src/core/transformer.ts @@ -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 } }