aboutsummaryrefslogtreecommitdiff
path: root/examples/macros/example.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-26 00:14:15 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-26 00:14:15 -0700
commit66ed7c1f30d1ba6569efa114c9d90ccac45fb86a (patch)
tree4ba9471f0e3dfe2e8785654757464de43937229d /examples/macros/example.js
parentff8393ce3264f1d40fc82aef428dbb8c766b2b6f (diff)
downloadbun-66ed7c1f30d1ba6569efa114c9d90ccac45fb86a.tar.gz
bun-66ed7c1f30d1ba6569efa114c9d90ccac45fb86a.tar.zst
bun-66ed7c1f30d1ba6569efa114c9d90ccac45fb86a.zip
Basic macro impl
Diffstat (limited to 'examples/macros/example.js')
-rw-r--r--examples/macros/example.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/macros/example.js b/examples/macros/example.js
new file mode 100644
index 000000000..d612c1fa4
--- /dev/null
+++ b/examples/macros/example.js
@@ -0,0 +1,4 @@
+// source code
+import { mysteryBox } from "macro:./mystery-box";
+
+export default "You roll! " + mysteryBox(123);