mirror of
https://github.com/hanzoai/ts-node.git
synced 2026-10-30 19:36:25 +00:00
* fix (#1391) * fix transformers docs about ttypescript and ts-patch (#1392) * Better favicon, and fix url / baseUrl / "canonical" metadata (#1402)
842 B
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" }
]
}
}