转换器
🌐 Transformer
Oxc 转换器负责将较高版本的 ECMAScript 和 TypeScript 转换为可以在旧浏览器和环境中运行的低版本。
🌐 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