Don't await plugins

This commit is contained in:
Jarred Sumner
2023-09-21 06:16:31 -07:00
parent 6abc9af472
commit a18ef053a4
2 changed files with 2 additions and 2 deletions

View File

@@ -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");

View File

@@ -1,6 +1,6 @@
import { plugin } from "bun";
await plugin({
plugin({
name: "svelte loader",
async setup(builder) {
var { compile } = await import("svelte/compiler");