🚀
High Performance
Built with Rust and SWC for maximum performance
High-performance Code Transformer
Transform const and let declarations to var in JavaScript/TypeScript
A high-performance JavaScript/TypeScript code transformer powered by Rust and SWC.
npm install rsdown
# or
pnpm add rsdown
# or
yarn add rsdown
import { transformToVar } from 'rsdown'
const code = `
const x = 1;
let y = 2;
`
const result = transformToVar(code)
console.log(result)
// Output:
// var x = 1;
// var y = 2;