UNPKG

@tanstack/router-core

Version:

Modern and scalable routing for React applications

14 lines (12 loc) 566 B
import { ReadableStreamPlugin } from 'seroval-plugins/web' import { ShallowErrorPlugin } from './ShallowErrorPlugin' import { RawStreamSSRPlugin } from './RawStream' import type { RawStream } from './RawStream' import type { Plugin } from 'seroval' export const defaultSerovalPlugins = [ ShallowErrorPlugin as Plugin<Error, any>, // RawStreamSSRPlugin must come before ReadableStreamPlugin to match first RawStreamSSRPlugin as Plugin<RawStream, any>, // ReadableStreamNode is not exported by seroval ReadableStreamPlugin as Plugin<ReadableStream, any>, ]