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

Commit da8c5b9

Browse files
committed
fix: improve sourcemap handling
1 parent b2ea9b4 commit da8c5b9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"defu": "^5.0.0",
7575
"htmlparser2": "^7.1.2",
7676
"magic-string": "^0.25.7",
77-
"unplugin": "^0.2.10"
77+
"unplugin": "^0.2.11"
7878
},
7979
"devDependencies": {
8080
"@antfu/eslint-config": "^0.9.0",

src/core/transform.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ function transformVue(input: string, id: string, options: ResolvedOptions): Tran
7373
return {
7474
code: s.toString(),
7575
map: options.sourceMap
76-
? s.generateMap()
76+
? s.generateMap({
77+
source: id,
78+
includeContent: true,
79+
})
7780
: null,
7881
}
7982
}

0 commit comments

Comments
 (0)