UNPKG

js-streaming

Version:

Unified streaming client for WebSocket, SSE, HTTP streaming, long-polling, HLS, and WebRTC.

14 lines (12 loc) 334 B
import { defineConfig } from "tsup"; export default defineConfig({ entry: ["src/index.ts", "src/hooks/vue.ts", "src/hooks/react.ts"], format: ["esm", "cjs"], dts: true, sourcemap: true, clean: true, outDir: "dist", outExtension({ format }) { return { js: format === "esm" ? ".mjs" : ".cjs" }; }, });