File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ export default class Bundle {
144
144
} ) ;
145
145
146
146
return {
147
- file : options . file ? options . file . split ( / [ / \\ ] / ) . pop ( ) : null ,
147
+ file : options . file ? options . file . split ( / [ / \\ ] / ) . pop ( ) : undefined ,
148
148
sources : this . uniqueSources . map ( ( source ) => {
149
149
return options . file ? getRelativePath ( options . file , source . filename ) : source . filename ;
150
150
} ) ,
Original file line number Diff line number Diff line change @@ -163,9 +163,9 @@ export default class MagicString {
163
163
} ) ;
164
164
165
165
return {
166
- file : options . file ? options . file . split ( / [ / \\ ] / ) . pop ( ) : null ,
167
- sources : [ options . source ? getRelativePath ( options . file || '' , options . source ) : null ] ,
168
- sourcesContent : options . includeContent ? [ this . original ] : [ null ] ,
166
+ file : options . file ? options . file . split ( / [ / \\ ] / ) . pop ( ) : undefined ,
167
+ sources : [ options . source ? getRelativePath ( options . file || '' , options . source ) : ( options . file || '' ) ] ,
168
+ sourcesContent : options . includeContent ? [ this . original ] : undefined ,
169
169
names,
170
170
mappings : mappings . raw ,
171
171
} ;
You can’t perform that action at this time.
0 commit comments