请问 Nodejs 中 chalk 怎么作为 Worker Threads 的参数?

发布于 1周前 作者 sinazl 来自 nodejs/Nestjs

请问 Nodejs 中 chalk 怎么作为 Worker Threads 的参数?
chalk Not working with Worker Threads
https://github.com/chalk/chalk/issues/327

Alternatively, pass chalk.level as part of the worker data passed to the worker thread and restore it on chalk in the worker thread.

请问一下,这里有没有人知道 上面这句话怎么实现呢?
没看懂怎么 restore 。


回到顶部