diff options
author | 2022-01-22 20:46:28 -0800 | |
---|---|---|
committer | 2022-01-22 20:46:28 -0800 | |
commit | 4d9ae0df06c5506b16fe7b37d36082c441f37c1c (patch) | |
tree | 907c6ef05067216c5134cceda60ff7738392e497 /bench/snippets/transpiler.mjs | |
parent | 4d95e443172339d66694dd0cb7b5e3e2fdae38cc (diff) | |
download | bun-4d9ae0df06c5506b16fe7b37d36082c441f37c1c.tar.gz bun-4d9ae0df06c5506b16fe7b37d36082c441f37c1c.tar.zst bun-4d9ae0df06c5506b16fe7b37d36082c441f37c1c.zip |
:camera:
Diffstat (limited to 'bench/snippets/transpiler.mjs')
-rw-r--r-- | bench/snippets/transpiler.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/snippets/transpiler.mjs b/bench/snippets/transpiler.mjs index e3abf266c..6872d88b7 100644 --- a/bench/snippets/transpiler.mjs +++ b/bench/snippets/transpiler.mjs @@ -51,8 +51,8 @@ if (process.isBun) { const code = readFileSync("src/test/fixtures/simple.jsx", "utf8"); -if (process.env.SYNC) { - console.log(transformSync(code, opts)); -} else { +if (process.env.ASYNC) { console.log(await transform(code, opts)); +} else { + console.log(transformSync(code, opts)); } |