A webpack plugin that automates TypeScript loader configuration using ts-loader, thread-loader, and fork-ts-checker-webpack-plugin with sensible defaults for development and production builds. Version 2.0.3 requires webpack >=4.36.0 and TypeScript >=3.1.0. Part of the common-config-webpack-plugin suite, it adjusts settings based on webpack mode. Key differentiator: zero-config TypeScript webpack loader setup with multi-threaded compilation and type checking.
npm install ts-config-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Minimal webpack config using ts-config-webpack-plugin to compile TypeScript with ts-loader and thread-loader in development mode.
Remove mode from options and set webpack mode in the config directly. If you must override, use webpack's mode or set process.env.NODE_ENV.
Ensure a valid tsconfig.json exists at the project root or provide an explicit configFile option.
Use webpack 4 for guaranteed compatibility, or manually update loader versions if using webpack 5.
Disable thread-loader by configuring the plugin with `threadLoader: false` (not officially documented; inspect plugin source or use custom loader configuration).
Consider using ts-loader directly with thread-loader and fork-ts-checker-webpack-plugin for more control and active maintenance.
Run 'npm install --save-dev ts-config-webpack-plugin' or add it to devDependencies.
Use 'const TsConfigWebpackPlugin = require('ts-config-webpack-plugin');' or 'import TsConfigWebpackPlugin from 'ts-config-webpack-plugin';' (if bundler supports it).Run 'npm install --save-dev typescript' or install a compatible version.