X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=rollup.config.mjs;h=7454ef722b2fa32c8987187ec7fb12b5faeb0602;hb=dab8c377b70fc962ec217f2aeb719842f9f94cd6;hp=0d5964e544f2ff89ed258e88e9500301ce820a66;hpb=509e904b46dca595dc59803516f9af85368a2860;p=poolifier.git 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',