Watchify: log compilation errors
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 https://github.com/Microsoft/TypeScript/issues/13700.

Microsoft/TypeScript-Handbook