<commit_before># TypeScript loader for webpack

[![npm version](https://img.shields.io/npm/v/ts-loader.svg)](https://www.npmjs.com/package/ts-loader)
[![build and test](https://github.com/TypeStrong/ts-loader/actions/workflows/push.yml/badge.svg)](https://github.com/TypeStrong/ts-loader/actions/workflows/push.yml)
[![Downloads](http://img.shields.io/npm/dm/ts-loader.svg)](https://npmjs.org/package/ts-loader)
[![node version](https://img.shields.io/node/v/ts-loader.svg)](https://www.npmjs.com/package/ts-loader)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

<br />
<p align="center">
  <h3 align="center">ts-loader</h3>

  <p align="center">
    This is the TypeScript loader for webpack.
    <br />
    <br />
    <a href="https://github.com/TypeStrong/ts-loader#installation">Installation</a>
    ·
    <a href="https://github.com/TypeStrong/ts-loader/issues">Report Bug</a>
    ·
    <a href="https://github.com/TypeStrong/ts-loader/issues">Request Feature</a>
  </p>
</p>

## Table of Contents

<!-- toc -->

- [Getting Started](#getting-started)
  * [Installation](#installation)
  * [Running](#running)
  * [Examples](#examples)
  * [Faster Builds](#faster-builds)
  * [Yarn Plug’n’Play](#yarn-plugnplay)
  * [Babel](#babel)
  * [Parallelising Builds](#parallelising-builds)
  * [Compatibility](#compatibility)
  * [Configuration](#configuration)
    + [`devtool` / sourcemaps](#devtool--sourcemaps)
  * [Code Splitting and Loading Other Resources](#code-splitting-and-loading-other-resources)
  * [Declarations (.d.ts)](#declarations-dts)
  * [Failing the build on TypeScript compilation error](#failing-the-build-on-typescript-compilation-error)
  * [`baseUrl` / `paths` module resolution](#baseurl--paths-module-resolution)
  * [Options](#options)
  * [Loader Options](#loader-options)
    + [transpileOnly](#transpileonly)
    + [happyPackMode](#happypackmode)
    + [resolveModuleName and resolveTypeReferenceDirective](#resolvemodulename-and-resolvetypereferencedirective)
    + [getCustomTransformers](#getcustomtransformers)
    + [logInfoToStdOut](#loginfotostdout)
    + [logLevel](#loglevel)
    + [silent](#silent)
    + [ignoreDiagnostics](#ignorediagnostics)
    + [reportFiles](#reportfiles)
    + [compiler](#compiler)
    + [configFile](#configfile)<commit_msg>Fix anchor jumping in README.md (#1521)<commit_after># TypeScript loader for webpack

[![npm version](https://img.shields.io/npm/v/ts-loader.svg)](https://www.npmjs.com/package/ts-loader)
[![build and test](https://github.com/TypeStrong/ts-loader/actions/workflows/push.yml/badge.svg)](https://github.com/TypeStrong/ts-loader/actions/workflows/push.yml)
[![Downloads](http://img.shields.io/npm/dm/ts-loader.svg)](https://npmjs.org/package/ts-loader)
[![node version](https://img.shields.io/node/v/ts-loader.svg)](https://www.npmjs.com/package/ts-loader)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

<br />
<p align="center">
  <h3 align="center">ts-loader</h3>

  <p align="center">
    This is the TypeScript loader for webpack.
    <br />
    <br />
    <a href="https://github.com/TypeStrong/ts-loader#installation">Installation</a>
    ·
    <a href="https://github.com/TypeStrong/ts-loader/issues">Report Bug</a>
    ·
    <a href="https://github.com/TypeStrong/ts-loader/issues">Request Feature</a>
  </p>
</p>

## Table of Contents

<!-- toc -->

- [Getting Started](#getting-started)
  * [Installation](#installation)
  * [Running](#running)
  * [Examples](#examples)
  * [Faster Builds](#faster-builds)
  * [Yarn Plug’n’Play](#yarn-plugnplay)
  * [Babel](#babel)
  * [Compatibility](#compatibility)
  * [Configuration](#configuration)
    + [`devtool` / sourcemaps](#devtool--sourcemaps)
  * [Code Splitting and Loading Other Resources](#code-splitting-and-loading-other-resources)
  * [Declarations (.d.ts)](#declaration-files-dts)
  * [Failing the build on TypeScript compilation error](#failing-the-build-on-typescript-compilation-error)
  * [`baseUrl` / `paths` module resolution](#baseurl--paths-module-resolution)
  * [Options](#options)
  * [Loader Options](#loader-options)
    + [transpileOnly](#transpileonly)
    + [happyPackMode](#happypackmode)
    + [resolveModuleName and resolveTypeReferenceDirective](#resolvemodulename-and-resolvetypereferencedirective)
    + [getCustomTransformers](#getcustomtransformers)
    + [logInfoToStdOut](#loginfotostdout)
    + [logLevel](#loglevel)
    + [silent](#silent)
    + [ignoreDiagnostics](#ignorediagnostics)
    + [reportFiles](#reportfiles)
    + [compiler](#compiler)
    + [configFile](#configfile)
{'fraction_non_alphanumeric': 0.1878312486750053, 'fraction_numerical': 0.002967988128047488, 'mean_word_length': 4.824691358024691, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 24, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1231809', 'n_tokens_mistral': 1742, 'n_tokens_neox': 1588, 'n_words': 200}