diff --git a/docs/runtime/plugins.md b/docs/runtime/plugins.md index a422fdc408..a63c874436 100644 --- a/docs/runtime/plugins.md +++ b/docs/runtime/plugins.md @@ -61,7 +61,7 @@ Plugins are primarily used to extend Bun with loaders for additional file types. ```ts#yamlPlugin.ts import { plugin } from "bun"; -await plugin({ +plugin({ name: "YAML", async setup(build) { const { load } = await import("js-yaml"); diff --git a/test/js/third_party/svelte/bun-loader-svelte.ts b/test/js/third_party/svelte/bun-loader-svelte.ts index f0a6e3419a..3091ce0600 100644 --- a/test/js/third_party/svelte/bun-loader-svelte.ts +++ b/test/js/third_party/svelte/bun-loader-svelte.ts @@ -1,6 +1,6 @@ import { plugin } from "bun"; -await plugin({ +plugin({ name: "svelte loader", async setup(builder) { var { compile } = await import("svelte/compiler");