aboutsummaryrefslogtreecommitdiff
path: root/docs/bundler/plugins.md
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-07-26 17:11:05 -0700
committerGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-07-26 17:11:15 -0700
commit34fd4df6460dfb46b20445c15e4eaa7561deba99 (patch)
treee91fbd87f669da2719e8cc980f5b5931a582b382 /docs/bundler/plugins.md
parenta6d54e59491a8db94467e482e063c06ee4c27be2 (diff)
downloadbun-34fd4df6460dfb46b20445c15e4eaa7561deba99.tar.gz
bun-34fd4df6460dfb46b20445c15e4eaa7561deba99.tar.zst
bun-34fd4df6460dfb46b20445c15e4eaa7561deba99.zip
Fix broken anchors
Diffstat (limited to 'docs/bundler/plugins.md')
-rw-r--r--docs/bundler/plugins.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/bundler/plugins.md b/docs/bundler/plugins.md
index 4e0fafee5..1cb22432b 100644
--- a/docs/bundler/plugins.md
+++ b/docs/bundler/plugins.md
@@ -276,7 +276,7 @@ import MySvelteComponent from "./component.svelte";
console.log(mySvelteComponent.render());
```
-## Reading `Bun.build`'s config
+## Reading the config
Plugins can read and write to the [build config](/docs/bundler#api) with `build.config`.
@@ -305,7 +305,10 @@ Bun.build({
```ts
namespace Bun {
- function plugin(plugin: { name: string; setup: (build: PluginBuilder) => void }): void;
+ function plugin(plugin: {
+ name: string;
+ setup: (build: PluginBuilder) => void;
+ }): void;
}
type PluginBuilder = {