aboutsummaryrefslogtreecommitdiff
path: root/test/transpiler/async-transpiler-imported.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2023-07-27 22:30:10 -0700
committerGravatar GitHub <noreply@github.com> 2023-07-27 22:30:10 -0700
commit3e5beb12790b3fe5b7eef1835c59f05fd12fcff9 (patch)
tree3c1119e06b7738a1db4abd27383b56425c45fed3 /test/transpiler/async-transpiler-imported.js
parent70b9bf743c21484b35918bb07ff2423f77207d2e (diff)
downloadbun-3e5beb12790b3fe5b7eef1835c59f05fd12fcff9.tar.gz
bun-3e5beb12790b3fe5b7eef1835c59f05fd12fcff9.tar.zst
bun-3e5beb12790b3fe5b7eef1835c59f05fd12fcff9.zip
Fix bug with // @bun annotation in main thread (#3855)
* Uncomment test * Fix bug with // @bun + async transpiler --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'test/transpiler/async-transpiler-imported.js')
-rw-r--r--test/transpiler/async-transpiler-imported.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/transpiler/async-transpiler-imported.js b/test/transpiler/async-transpiler-imported.js
new file mode 100644
index 000000000..ed2f22490
--- /dev/null
+++ b/test/transpiler/async-transpiler-imported.js
@@ -0,0 +1,6 @@
+// @bun
+export default 42;
+
+if (import.meta.main) {
+ console.log("Hello world!");
+}