build(simulator): cleanup bundler configuration
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 28 May 2023 11:49:17 +0000 (13:49 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 28 May 2023 11:49:17 +0000 (13:49 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
rollup.config.mjs

index 82b5b79aa27de94041111165e4d95eb415334288..795da6e8207c36936f44322d9f89bd45cc6df724 100644 (file)
@@ -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: [