diff options
-rw-r--r-- | docs/runtime/plugins.md | 2 | ||||
-rw-r--r-- | test/js/third_party/svelte/bun-loader-svelte.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/runtime/plugins.md b/docs/runtime/plugins.md index a422fdc40..a63c87443 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 f0a6e3419..3091ce060 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"); |