@tanstack/router-core
Version:
Modern and scalable routing for React applications
13 lines (11 loc) • 495 B
text/typescript
import { ReadableStreamPlugin } from 'seroval-plugins/web'
import { ShallowErrorPlugin } from './ShallowErrorPlugin'
import { RawStreamSSRPlugin } from './RawStream'
import type { Plugin } from 'seroval'
export const defaultSerovalPlugins = [
ShallowErrorPlugin as Plugin<Error, any>,
// RawStreamSSRPlugin must come before ReadableStreamPlugin to match first
RawStreamSSRPlugin,
// ReadableStreamNode is not exported by seroval
ReadableStreamPlugin as Plugin<ReadableStream, any>,
]