MCPcopy
hub / github.com/vercel/next.js / transform

Method transform

packages/next/src/lib/worker.ts:213–216  ·  view source on GitHub ↗
(_chunk, _encoding, callback)

Source from the content-addressed store, hash-verified

211 // Listen to the worker's stdout and stderr, if there's any thing logged, abort the activity first
212 const abortActivityStreamOnLog = new Transform({
213 transform(_chunk, _encoding, callback) {
214 onActivityAbortImpl()
215 callback()
216 },
217 })
218 // Stop the activity if there's any output from the worker
219 this._worker.getStdout().pipe(abortActivityStreamOnLog)

Calls 1

callbackFunction · 0.50

Tested by

no test coverage detected