UNPKG

@nuxt/cli

Version:
11 lines (10 loc) • 432 B
import { t as openBroadcast } from "./broadcast-BOqKQ6Dc.mjs"; // src/dev/span-channel.ts /** Where `runtime/dev-request-context.mjs` sends the spans it times. */ const DEV_SPAN_CHANNEL = "nuxt:dev:span"; /** Receive the app's spans until the returned function is called. */ function openDevSpanChannel(sink) { const channel = openBroadcast(DEV_SPAN_CHANNEL, sink); return () => channel?.close(); } export { openDevSpanChannel };