How to use Bun API in actions? #13703
-
import {sleep} from "bun"
// https://bun.sh/reference/bun/sleep
export async function action({request}: Route.ActionArgs) {
await sleep(1000)
...
}
If I do
|
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
May 29, 2025
Replies: 1 comment 1 reply
-
You need to use Bun as runtime, you can do |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ivan-kleshnin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to use Bun as runtime, you can do
bun run --bun script
to force using Bun