From a18ef053a42779138ab1b8bfbcba362ff65e04eb Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 21 Sep 2023 06:16:31 -0700 Subject: [PATCH] Don't await plugins --- docs/runtime/plugins.md | 2 +- 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 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");