Skip to content

Transformer ​

The Oxc transformer is responsible for converting higher versions of ECMAScript and TypeScript to lower versions that can run in older browsers and environments.

Repository Structure ​

crates/oxc_transformer/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ lib.rs                    # Main transformer interface
β”‚   β”œβ”€β”€ transformer.rs            # Core transformation logic
β”‚   β”œβ”€β”€ typescript/               # TypeScript transformations
β”‚   β”œβ”€β”€ jsx/                      # JSX transformations
β”‚   β”œβ”€β”€ es2015/                   # ES2015+ transformations
β”‚   β”œβ”€β”€ isolated_declarations/    # .d.ts generation
β”‚   └── helpers/                  # Utility functions
β”œβ”€β”€ tests/                        # Integration tests
β”œβ”€β”€ examples/                     # Usage examples
└── benches/                      # Performance benchmarks

Released under the MIT License.