这是开发预览网站。请访问正式文档 lynxjs.org

Home > @lynx-js/template-webpack-plugin > LynxEncodePlugin > encodePool

LynxEncodePlugin.encodePool property

Shared TASM encode worker pool: multiple entries (and multiple LynxEncodePlugin instances in the same process) share its worker slots for parallel encode; watch-mode rebuilds keep the same workers warm. availableParallelism() honors cgroup CPU limits (containers, CI runners), so we don't need to subtract a core ourselves.

Signature:

static encodePool: Tinypool;