mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
fix: remove "stream" dependency in browser bundles, #396
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Emitter } from './emitter'
|
||||
|
||||
export class StreamedEmitter implements Emitter {
|
||||
public buffer = '';
|
||||
public stream: NodeJS.ReadableStream = null as any
|
||||
constructor () {
|
||||
throw new Error('streaming not supported in browser')
|
||||
}
|
||||
public write: (html: any) => void
|
||||
public error: (err: Error) => void
|
||||
public end: () => void
|
||||
}
|
||||
Reference in New Issue
Block a user