Skip to content

Transformador

O transformador do Oxc converte versões mais novas de ECMAScript e TypeScript para versões mais antigas que rodam em browsers e ambientes legados.

Estrutura do repositório

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