Fix Node browser fallbacks to have util.inherit and other size improvements (#19783)

Co-authored-by: Jarred-Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2025-05-20 23:25:52 -07:00
committed by GitHub
parent 98ee30eccf
commit 8aae534270
31 changed files with 5195 additions and 922 deletions

View File

@@ -1,7 +1,19 @@
/**
* Browser polyfill for the `"https"` module.
*
* Imported on usage in `bun build --target=browser`
*/
export * from "https-browserify";
export * as default from "https-browserify";
import * as https from "https-browserify";
export var {
Agent,
ClientRequest,
IncomingMessage,
METHODS,
OutgoingMessage,
STATUS_CODES,
Server,
ServerResponse,
createServer,
get,
globalAgent,
maxHeaderSize,
request,
setMaxIdleHTTPParsers,
validateHeaderName,
validateHeaderValue,
} = https;