mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
import { join } from "path";
|
|
import { bench, run } from "../runner.mjs";
|
|
|
|
const code = require("fs").readFileSync(
|
|
process.argv[2] || join(import.meta.dir, "../node_modules/@babel/standalone/babel.min.js"),
|
|
);
|
|
|
|
const transpiler = new Bun.Transpiler({ minify: true });
|
|
|
|
bench("transformSync", () => {
|
|
transpiler.transformSync(code);
|
|
});
|
|
|
|
await run();
|