From: Jérôme Benoit Date: Sun, 28 May 2023 11:49:17 +0000 (+0200) Subject: build(simulator): cleanup bundler configuration X-Git-Tag: v1.2.15~23 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=7b008a295bd3be13cf0776fdaa0d86cca73c1510;p=e-mobility-charging-stations-simulator.git build(simulator): cleanup bundler configuration Signed-off-by: Jérôme Benoit --- diff --git a/rollup.config.mjs b/rollup.config.mjs index 82b5b79a..795da6e8 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,5 +1,5 @@ /* eslint-disable n/no-unpublished-import */ -import os from 'os'; +import { cpus } from 'node:os'; import json from '@rollup/plugin-json'; import terser from '@rollup/plugin-terser'; @@ -19,7 +19,7 @@ export default { dir: 'dist', format: 'esm', sourcemap: !!isDevelopmentBuild, - plugins: [terser({ maxWorkers: os.cpus().length / 2 })], + plugins: [terser({ maxWorkers: cpus().length / 2 })], }, ], external: [