# ts-loader

> The TypeScript loader for webpack: compile .ts and .tsx files as part of a webpack build

Source: https://talira.ai/catalog/ts-loader-h2hq220a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / build / bundlers](https://talira.ai/categories/developer-tools/build/bundlers), [languages / typescript](https://talira.ai/categories/languages/typescript)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [TypeStrong](https://talira.ai/orgs/typestrong.md)

ts-loader is the TypeScript loader for [webpack](https://talira.ai/catalog/webpack-9pcx44tb.md): it runs the [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md) compiler on .ts and .tsx files during a webpack build, reports type errors and can emit declaration files. For faster builds it has a transpile-only mode that skips type checking, meant to be paired with fork-ts-checker-webpack-plugin, which checks types in a separate process. It supports TypeScript project references, Yarn Plug'n'Play, hot module replacement and webpack watch mode, and works alongside Babel and babel-loader.

## Links

- GitHub: https://github.com/TypeStrong/ts-loader

## Problems it solves

- compile TypeScript as part of my webpack build
- my webpack build with TypeScript is slow because it type-checks every file on each rebuild
- use TypeScript project references in a webpack project

## Features

- Compiles TypeScript (.ts, .tsx) inside a webpack build
- Reports type errors and fails the build on them
- transpileOnly mode for fast builds, with type checking moved to fork-ts-checker-webpack-plugin
- Emits declaration (.d.ts) files
- Incremental builds with TypeScript project references
- Works with Babel, Yarn Plug'n'Play, webpack watch and hot module replacement

## Limitations

- transpileOnly mode skips type checking and emits no declaration files unless a separate checker such as fork-ts-checker-webpack-plugin is set up[^1]

## Trust

Overall: 0.49 out of 1.
Signals: maintenance 0.49, adoption 0.71, momentum 0.42, community 0.88, backing 0.30, extensibility 0.00.

- last commit 44 days ago
- 6 commits in the last 90 days
- latest release v9.6.2 5 months ago
- 3.5k GitHub stars
- 157 contributors
- accepts sponsorship (Github)
- backed by TypeStrong

## Related

- Works with [webpack](https://talira.ai/catalog/webpack-9pcx44tb.md)
- Works with [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md)

## Alternatives

- [webpack](https://talira.ai/catalog/webpack-9pcx44tb.md): A bundler for javascript and friends
- [SWC](https://talira.ai/catalog/swc-bb581j3x.md): Rust-based platform for the Web: a super-fast TypeScript and JavaScript compiler
- [tsup](https://talira.ai/catalog/tsup-evezd0pk.md): Zero-config bundler for TypeScript libraries, powered by esbuild
- [esbuild](https://talira.ai/catalog/esbuild-198nyf0k.md): An extremely fast bundler for the web
- [Parcel](https://talira.ai/catalog/parcel-2zm6hky3.md): The zero configuration build tool for the web
- [Rspack](https://talira.ai/catalog/rspack-24psq42z.md): Fast Rust-based web bundler with a webpack-compatible API

## Sources

[^1]: https://github.com/TypeStrong/ts-loader/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/TypeStrong/ts-loader/blob/main/LICENSE (checked 28 Nov 2026)
