From: Jérôme Benoit Date: Sat, 22 Jul 2023 21:50:52 +0000 (+0200) Subject: build: ensure an integer value at // build X-Git-Tag: v1.2.20~167 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e0f2c23408b6ef6e12f70c9b46a4e8342a1305db;p=e-mobility-charging-stations-simulator.git build: ensure an integer value at // build Signed-off-by: Jérôme Benoit --- 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: [