aboutsummaryrefslogtreecommitdiff
path: root/examples/macros/example.js
diff options
context:
space:
mode:
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);