Skip to content

Commit

Permalink
fix: polyfill URLPattern under Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Mar 5, 2024
1 parent 5ebc367 commit 8e21f32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oak/acorn",
"version": "0.5.0",
"version": "0.5.1-alpha.1",
"exports": {
".": "./mod.ts",
"./context": "./context.ts",
Expand Down
4 changes: 4 additions & 0 deletions http_server_bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ import type {
} from "./types_internal.ts";
import { createPromiseWithResolvers } from "./util.ts";

if (!("URLPattern" in globalThis)) {
await import("npm:urlpattern-polyfill");
}

type TypedArray =
| Uint8Array
| Uint16Array
Expand Down

0 comments on commit 8e21f32

Please sign in to comment.