From: Jérôme Benoit Date: Sun, 28 May 2023 11:47:19 +0000 (+0200) Subject: build: cleanup bundler configuration X-Git-Tag: v2.5.0~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8424fb0d820585810a5505db509536addec31562;p=poolifier.git build: cleanup bundler configuration Signed-off-by: Jérôme Benoit --- diff --git a/rollup.config.mjs b/rollup.config.mjs index 0d5964e5..7454ef72 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,4 +1,4 @@ -import os from 'os' +import { cpus } from 'node:os' import terser from '@rollup/plugin-terser' import typescript from '@rollup/plugin-typescript' import analyze from 'rollup-plugin-analyzer' @@ -9,7 +9,7 @@ const isDevelopmentBuild = process.env.BUILD === 'development' const isAnalyzeBuild = process.env.ANALYZE const isDocumentationBuild = process.env.DOCUMENTATION -const maxWorkers = os.cpus().length / 2 +const maxWorkers = cpus().length / 2 export default { input: 'src/index.ts',