转换器
🌐 Transformer
特性
🌐 Features
- 将 ESNext 降级到 ES2015。
- 将 TypeScript 转换为 JavaScript。
- 将 JSX 转换为 JavaScript,并内置 React Refresh。
- 内置对流行插件如 styled-components 的支持。
- 替换全局变量。
- 在不使用 TypeScript 编译器的情况下发出 TypeScript 隔离声明。
安装
🌐 Installation
Node.js
- 使用节点绑定 oxc-转换。
- 在 stackblitz 上试试。
Rust
使用带有 transformer 功能的 oxc 伞形箱。
🌐 Use the umbrella crate oxc with the transformer feature.
可以在这里找到 Rust 使用示例。
🌐 Rust usage example can be found here.
集成
🌐 Integrations
