fix: fix nullish exception
[e-mobility-charging-stations-simulator.git] / bundle.js
index e96d450c0152ffbd43391a844b4492d05ae82024..455da66fae8497ea74113c1d3813ae34441c765a 100644 (file)
--- a/bundle.js
+++ b/bundle.js
@@ -6,10 +6,9 @@ import { build } from 'esbuild'
 import { clean } from 'esbuild-plugin-clean'
 import { copy } from 'esbuild-plugin-copy'
 
-const isDevelopmentBuild = env.BUILD === 'development'
-const sourcemap = !!isDevelopmentBuild
-
 ;(async () => {
+  const isDevelopmentBuild = env.BUILD === 'development'
+  const sourcemap = !!isDevelopmentBuild
   console.info(chalk.green(`Building in ${isDevelopmentBuild ? 'development' : 'production'} mode`))
   console.time('Build time')
   await build({
@@ -27,7 +26,7 @@ const sourcemap = !!isDevelopmentBuild
       'http-status-codes',
       'just-merge',
       'logform',
-      'mnemonist/*',
+      // 'mnemonist',
       'mongodb',
       'node:*',
       'poolifier',