UNPKG

@cloudflare/unenv-preset

Version:
14 lines (13 loc) 380 B
import { createServer, Server } from "unenv/node/https"; export { Server, createServer } from "unenv/node/https"; const workerdHttps = process.getBuiltinModule("node:https"); export const { Agent, globalAgent, request, get } = workerdHttps; export default { Agent, // @ts-expect-error Node types do not match unenv createServer, get, globalAgent, request, Server };