X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=bundle.js;h=9821a48d6377a8266eb71250f07039343ebedf9c;hb=f255f33b39e91a28f149fc982dfae40209c56078;hp=e96d450c0152ffbd43391a844b4492d05ae82024;hpb=66a7748ddeda8c94d7562a1ce58d440319654a4c;p=e-mobility-charging-stations-simulator.git diff --git a/bundle.js b/bundle.js index e96d450c..9821a48d 100644 --- 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',