File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ function loadSourcemaps() {
121121 return ;
122122 }
123123 if ( ! f . contents ) {
124- cb ( new Error ( 'empty file' ) ) ;
124+ cb ( undefined , f ) ;
125125 return ;
126126 }
127127 const contents = f . contents . toString ( 'utf8' ) ;
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ export function loadSourcemaps(): NodeJS.ReadWriteStream {
165165 }
166166
167167 if ( ! f . contents ) {
168- cb ( new Error ( 'empty file' ) ) ;
168+ cb ( undefined , f ) ;
169169 return ;
170170 }
171171
Original file line number Diff line number Diff line change 55
66const es = require ( 'event-stream' ) ;
77
8- /** Ugly hack for gulp-tsb */
9- function handleDeletions ( ) {
10- return es . mapSync ( f => {
11- if ( / \. t s $ / . test ( f . relative ) && ! f . contents ) {
12- f . contents = Buffer . from ( '' ) ;
13- f . stat = { mtime : new Date ( ) } ;
14- }
15-
16- return f ;
17- } ) ;
18- }
198
209let watch = undefined ;
2110
@@ -24,6 +13,5 @@ if (!watch) {
2413}
2514
2615module . exports = function ( ) {
27- return watch . apply ( null , arguments )
28- . pipe ( handleDeletions ( ) ) ;
16+ return watch . apply ( null , arguments ) ;
2917} ;
You can’t perform that action at this time.
0 commit comments