File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ async function process_tag(
139
139
preprocessor : Preprocessor ,
140
140
source : Source
141
141
) : Promise < SourceUpdate > {
142
- const { filename } = source ;
142
+ const { filename, source : raw_source } = source ;
143
143
const tag_regex =
144
144
tag_name === 'style'
145
145
? / < ! - - [ ^ ] * ?- - > | < s t y l e ( \s [ ^ ] * ?) ? (?: > ( [ ^ ] * ?) < \/ s t y l e > | \/ > ) / gi
@@ -160,6 +160,7 @@ async function process_tag(
160
160
const processed = await preprocessor ( {
161
161
content : content || '' ,
162
162
attributes : parse_tag_attributes ( attributes || '' ) ,
163
+ source : raw_source ,
163
164
filename
164
165
} ) ;
165
166
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ export type MarkupPreprocessor = (options: {
22
22
export type Preprocessor = ( options : {
23
23
content : string ;
24
24
attributes : Record < string , string | boolean > ;
25
+ source : string ;
25
26
filename ?: string ;
26
27
} ) => Processed | Promise < Processed > ;
27
28
You can’t perform that action at this time.
0 commit comments