File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ export default createUnplugin<Options | undefined>((userOptions) => {
33
33
34
34
return {
35
35
code : s . toString ( ) ,
36
- map : s . generateMap ( { source : id , includeContent : true } ) ,
36
+ map : options . sourcemap
37
+ ? s . generateMap ( { hires : true } )
38
+ : undefined ,
37
39
}
38
40
}
39
41
@@ -48,7 +50,9 @@ export default createUnplugin<Options | undefined>((userOptions) => {
48
50
49
51
return {
50
52
code : s . toString ( ) ,
51
- map : s . generateMap ( { source : id , includeContent : true } ) ,
53
+ map : options . sourcemap
54
+ ? s . generateMap ( { hires : true } )
55
+ : undefined ,
52
56
}
53
57
}
54
58
} ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export interface Options {
3
3
fontsource ?: FontsourceFonts
4
4
google ?: GoogleFonts
5
5
typekit ?: TypeKitFonts
6
+ sourcemap ?: string
6
7
}
7
8
8
9
export interface CustomFontFace {
You can’t perform that action at this time.
0 commit comments