aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-21 06:16:31 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-09-21 06:16:31 -0700
commita18ef053a42779138ab1b8bfbcba362ff65e04eb (patch)
tree3efa2a3ea9b140198325c06456b4e17191e81a25
parent6abc9af47224fbfc5e13c11cff3e11fb21c1180a (diff)
downloadbun-a18ef053a42779138ab1b8bfbcba362ff65e04eb.tar.gz
bun-a18ef053a42779138ab1b8bfbcba362ff65e04eb.tar.zst
bun-a18ef053a42779138ab1b8bfbcba362ff65e04eb.zip
Don't await plugins
-rw-r--r--docs/runtime/plugins.md2
-rw-r--r--test/js/third_party/svelte/bun-loader-svelte.ts2
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");