Collection of TypeScript custom transformers for various uses.
Below are the list of available transformers in packages. All transformers can be installed through @namchee/henshin-<transformer_name>
.
Name | Description |
---|---|
strip-debug |
Replaces debugging statements with void expressions |
There are 4 ways to consume the transformers:
-
CLI Wrapper
By default, TypeScript does not support custom transformers by default. The community addresses this issue by providing a CLI wrapper that augments the functionality of
tsc
. such asttypescript
andts-patch
. -
Compiler API
Besides using third-party, custom compilers can be consumed by creating your own pipeline using Compiler API using
transform
ortranspile
. -
Bundlers
Some bundlers provides way to consume custom transformers through plugins such as
webpack
viats-loader
orttypescript
plugin forparcel
androllup
-
Helper function
For convenience, every transformers in Henshin exposes a helper function besides transformer factory that takes care of the transformation process by simply providing the file contents and options. Please refer to each package
README.md
for more information about helper functions.
This project is licensed under the MIT License