Skip to content

Commit 57d730e

Browse files
committed
Watchify: log compilation errors
When TypeScript fails to compile, Watchify simply creates an almost-empty bundle. With this change, it will also log TypeScript's error. Kudos to @blakeembrey for the solution. Fixes microsoft/TypeScript#13700.
1 parent 7408e52 commit 57d730e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pages/tutorials/Gulp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ gulp.task('copy-html', function () {
300300
function bundle() {
301301
return watchedBrowserify
302302
.bundle()
303+
.on('error', fancy_log)
303304
.pipe(source('bundle.js'))
304305
.pipe(gulp.dest('dist'));
305306
}

0 commit comments

Comments
 (0)