UNPKG

@twind/with-react

Version:

Seamless integration of Twind in a React project

20 lines (19 loc) 651 B
import { Transform } from 'node:stream'; import { createState } from './_/internal-55eec367.js'; let InlineStream = class InlineStream extends Transform { constructor(options){ let state = createState(options); super({ transform (chunk, encoding, callback) { state.push(chunk.toString()) ? this._flush(callback) : callback(); }, flush (callback) { let markup = state.flush(); markup && this.push(markup); callback(); } }); } }; export { InlineStream as default }; //# sourceMappingURL=pipeableStream.js.map