diff --git a/docs/runtime/plugins.md b/docs/runtime/plugins.md index d150bb6014..e30238da5e 100644 --- a/docs/runtime/plugins.md +++ b/docs/runtime/plugins.md @@ -63,7 +63,7 @@ Plugins are primarily used to extend Bun with loaders for additional file types. ```ts#yamlPlugin.ts import { plugin } from "bun"; -plugin({ +await plugin({ name: "YAML", async setup(build) { const { load } = await import("js-yaml"); @@ -179,7 +179,7 @@ Loading a YAML file is useful, but plugins support more than just data loading. ```ts#sveltePlugin.ts import { plugin } from "bun"; -plugin({ +await plugin({ name: "svelte loader", async setup(build) { const { compile } = await import("svelte/compiler");