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

fix: incorrect sourcemap of transformed code #232

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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',
})
},
}
}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy