From 3b9951cf773e875fa8359ee6470617bfc80e5162 Mon Sep 17 00:00:00 2001 From: Claude Bot Date: Wed, 31 Dec 2025 13:57:41 +0000 Subject: [PATCH] docs(bunfig): address review comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add macro object mapping example - Fix grammar in minify description 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- docs/runtime/bunfig.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/runtime/bunfig.mdx b/docs/runtime/bunfig.mdx index d1629932e4..2bb5cc1677 100644 --- a/docs/runtime/bunfig.mdx +++ b/docs/runtime/bunfig.mdx @@ -122,6 +122,11 @@ Configure Bun's macro behavior. Macros allow compile-time code execution. Set to ```toml title="bunfig.toml" icon="settings" # Disable macros macros = false + +# Or configure macro mappings +[macros] +# Map imports from a package to replacement paths +"react-relay" = { "graphql" = "./my-graphql-macro.ts" } ``` ### `env` @@ -201,7 +206,7 @@ hmr = true #### `serve.static.minify` -Configure minification settings. Can be a boolean to enable/disable all minification, or an object for fine-grained control. +Configure minification settings. This can be a boolean to enable or disable all minification, or an object for fine-grained control. ```toml title="bunfig.toml" icon="settings" [serve.static]