fix: ensure the ATG will start from its saved status
[e-mobility-charging-stations-simulator.git] / rollup.config.mjs
index c28aaf0460dd35fa7100ffffcba00c60c3c5b978..40f1d6794c150c409643c4874914fab5a0e0815c 100644 (file)
@@ -1,5 +1,6 @@
 /* eslint-disable n/no-unpublished-import */
 import * as os from 'node:os';
+import { env } from 'node:process';
 
 import json from '@rollup/plugin-json';
 import terser from '@rollup/plugin-terser';
@@ -23,8 +24,8 @@ const availableParallelism = () => {
   return availableParallelism;
 };
 
-const isDevelopmentBuild = process.env.BUILD === 'development';
-const isAnalyzeBuild = process.env.ANALYZE;
+const isDevelopmentBuild = env.BUILD === 'development';
+const isAnalyzeBuild = env.ANALYZE;
 const sourceMap = !!isDevelopmentBuild;
 
 export default defineConfig({
@@ -60,6 +61,7 @@ export default defineConfig({
     'node:http2',
     'node:path',
     'node:perf_hooks',
+    'node:process',
     'node:stream',
     'node:url',
     'node:util',