As of 29.02.2024 bun does not support
http2.createServerThis fork is only needed until bun supports this.
Track bun support of http2.createServer here
A module for serving HTTP, HTTPS and HTTP/2 connections, all over the same port.
Take a look at the orignal package Readme.md
"dependencies": {
"@httptoolkit/httpolyglot-bun": "git@github.com:esome/httpolyglot-bun.git"
} "baseUrl": "./",
"paths": {
"@httptoolkit/httpolyglot": ["node_modules/@httptoolkit/httpolyglot-bun/src/index"]
}, Some packages like mockttp have httptoolkit and httppolyglot as a dependency. If you want to use these packages in bun today, you need to prevent the call to unsupported functions in bun.