aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-wasm/test/node.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/bun-wasm/test/node.mjs')
-rw-r--r--packages/bun-wasm/test/node.mjs17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/bun-wasm/test/node.mjs b/packages/bun-wasm/test/node.mjs
new file mode 100644
index 000000000..832b3f67b
--- /dev/null
+++ b/packages/bun-wasm/test/node.mjs
@@ -0,0 +1,17 @@
+import * as Bun from "../index.mjs";
+
+await Bun.init(new URL("../bun.wasm", import.meta.url));
+
+const hey = Bun.transformSync(
+ `
+
+export function hi() {
+ return true;
+}
+
+`,
+ "hi.js",
+ "js"
+);
+
+console.log(JSON.stringify(hey, null, 2));