X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=bundle.js;h=0d609c2d789aa4e9c0ef568bfcbc57b9b3d7a792;hb=a7c99243479a27acd9cdedc5fac4ceae2ff47d47;hp=e96d450c0152ffbd43391a844b4492d05ae82024;hpb=a4385edc2344433c20fcb92d01cbe5a330b850b4;p=e-mobility-charging-stations-simulator.git diff --git a/bundle.js b/bundle.js index e96d450c..0d609c2d 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({