Update plugins.md

This commit is contained in:
Jarred Sumner
2024-12-17 01:34:00 -08:00
parent eecbeb32ec
commit 385868f504

View File

@@ -42,7 +42,7 @@ type Loader = "js" | "jsx" | "ts" | "tsx" | "css" | "json" | "toml" | "object";
## Usage
A plugin is defined as simple JavaScript object containing a `name` property and a `setup` function. Register a plugin with Bun using the `plugin` function.
A plugin is defined as simple JavaScript object containing a `name` property and a `setup` function.
```tsx#myPlugin.ts
import type { BunPlugin } from "bun";