Files
Andrew BradleyandGitHub 60edd092c6 Merge docs -> main (#1393)
* fix (#1391)

* fix transformers docs about ttypescript and ts-patch (#1392)

* Better favicon, and fix url / baseUrl / "canonical" metadata (#1402)
2021-08-08 18:48:11 -04:00

842 B

title
title
Third-party compilers

Some projects require a patched typescript compiler which adds additional features. For example, ttypescript and ts-patch add the ability to configure custom transformers. These are drop-in replacements for the vanilla typescript module and implement the same API.

For example, to use ttypescript and ts-transformer-keys, add this to your tsconfig.json:

{
  "ts-node": {
    // This can be omitted when using ts-patch
    "compiler": "ttypescript"
  },
  "compilerOptions": {
    // plugin configuration is the same for both ts-patch and ttypescript
    "plugins": [
      { "transform": "ts-transformer-keys/transformer" }
    ]
  }
}