Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
fix: incorrect sourcemap of transformed code (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhang1030 authored Sep 11, 2023
1 parent 5999f37 commit 4627634
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/core/src/compiler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ export function analyzeCode(code: string, filename: string, options: AnalyzeOpti

return {
code: ms.toString(),
map: ms.generateMap(),
get map() {
return ms.generateMap({
source: filename,
includeContent: true,
hires: 'boundary',
})
},
}
}

0 comments on commit 4627634

Please sign in to comment.