From e0f2c23408b6ef6e12f70c9b46a4e8342a1305db Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 22 Jul 2023 23:50:52 +0200 Subject: [PATCH] build: ensure an integer value at // build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- rollup.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 1034ffc8..6ee51a63 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -19,7 +19,7 @@ export default { dir: 'dist', format: 'esm', sourcemap: !!isDevelopmentBuild, - plugins: [terser({ maxWorkers: cpus().length / 2 })], + plugins: [terser({ maxWorkers: Math.floor(cpus().length / 2) })], }, ], external: [ -- 2.34.1