build: cleanup code extensions recommendation
[e-mobility-charging-stations-simulator.git] / bundle.js
index e96d450c0152ffbd43391a844b4492d05ae82024..9821a48d6377a8266eb71250f07039343ebedf9c 100644 (file)
--- a/bundle.js
+++ b/bundle.js
@@ -5,11 +5,9 @@ import chalk from 'chalk'
 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 +25,7 @@ const sourcemap = !!isDevelopmentBuild
       'http-status-codes',
       'just-merge',
       'logform',
-      'mnemonist/*',
+      'mnemonist',
       'mongodb',
       'node:*',
       'poolifier',