mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
docs(bunfig): address review comments
- Add macro object mapping example - Fix grammar in minify description 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user