@twind/with-react
Version:
Seamless integration of Twind in a React project
20 lines (19 loc) • 678 B
JavaScript
const node_stream = require('node:stream'), internal = require('./_/internal-8328aafb.cjs');
let InlineStream = class InlineStream extends node_stream.Transform {
constructor(options){
let state = internal.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();
}
});
}
};
module.exports = InlineStream;
//# sourceMappingURL=pipeableStream.cjs.map
;