Catch TypeScript errors with Webpack