A TypeScript loader for Webpack 4.x that integrates with Babel and supports caching and forked type-checking. v5.2.1 is the latest stable release, targeting TypeScript 2.7+ and Webpack 4. Notably, the loader can fork the type-checker to a separate process for faster development builds. Offers first-class Babel integration with caching, significantly reducing rebuild times when combined. However, for Windows users, paths may need correction. The loader is considered a mature alternative to ts-loader but slower for some workloads; consider ts-loader with HappyPack or thread-loader for those cases. See GitHub for full README.
npm install awesome-typescript-loaderVerified import paths — ran on the pinned version, not inferred.
Minimal webpack configuration using awesome-typescript-loader with CheckerPlugin for async error reporting.
Use forward slashes in paths (e.g., './src/**/*.ts' instead of '.\src\**\*.ts').
Upgrade to v3.2.0 or later; micromatch is more performant.
Use hard-source-webpack-plugin for build caching; do not combine with thread-loader.
Ensure you have TypeScript ^2.7 or ^3 and webpack 4.x.
Use CheckerPlugin and optionally set 'errorsAsWarnings' to true.
Ensure all paths in tsconfig.json use consistent casing and forward slashes.
Install TypeScript: npm install typescript --save-dev. Ensure version matches peer requirement (^2.7 || ^3).
Remove CheckerPlugin for production builds or add WatchIgnorePlugin to ignore node_modules. Alternatively, use 'forceIsolatedModules' to skip type checking in production.