aboutsummaryrefslogtreecommitdiff
path: root/docs/bundler/plugins.md
diff options
context:
space:
mode:
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 = {