UNPKG

@lingui/cli

Version:

CLI for working wit message catalogs

9 lines (8 loc) 369 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createExtractWorkerPool = createExtractWorkerPool; const threads_1 = require("threads"); /** @internal */ function createExtractWorkerPool(opts) { return (0, threads_1.Pool)(() => (0, threads_1.spawn)(new threads_1.Worker("../workers/extractWorker")), { size: opts.poolSize }); }