X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=795da6e8207c36936f44322d9f89bd45cc6df724;hb=5f0a7b0d1d6ccfa750f6f867e7ddfea412f43f9a;hp=82b5b79aa27de94041111165e4d95eb415334288;hpb=31b5738e12a713a409827124e88d8bc03bbed519;p=e-mobility-charging-stations-simulator.git 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: [