{"library":"ts-loader","type":"library","category":null,"description":"ts-loader is a webpack loader designed to compile TypeScript code into JavaScript within the webpack build pipeline. It leverages the official TypeScript compiler (`tsc`) to perform compilation, supporting full type checking and the generation of declaration files (`.d.ts`). The current stable version is 9.5.7, with frequent patch and minor releases to maintain compatibility with new TypeScript and webpack versions. Unlike `@babel/preset-typescript` with `babel-loader`, `ts-loader` performs comprehensive type checking, which can be computationally intensive for large projects. To mitigate this, it is commonly used in conjunction with `fork-ts-checker-webpack-plugin`, allowing type checking to run in a separate process for faster incremental builds while `ts-loader` handles transpilation.","language":"javascript","status":"active","version":"9.5.7","tags":["javascript","ts-loader","typescript-loader","webpack","loader","typescript","ts"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ts-loader","imports":["module.exports = {\n  // ...\n  module: {\n    rules: [\n      {\n        test: /\\.tsx?$/,\n        loader: 'ts-loader',\n        options: {\n          // loader options\n        }\n      }\n    ]\n  }\n};","{\n  loader: 'ts-loader',\n  options: {\n    transpileOnly: true,\n  }\n}","{\n  loader: 'ts-loader',\n  options: {\n    configFile: 'path/to/your/tsconfig.build.json',\n  }\n}"]},{"cmd":"yarn add ts-loader","imports":[]},{"cmd":"pnpm add ts-loader","imports":[]}],"homepage":null,"github":"https://github.com/TypeStrong/ts-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ts-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ts-loader/compatibility"}}