From: Jérôme Benoit Date: Thu, 30 Nov 2023 21:29:18 +0000 (+0100) Subject: build: properly account build time X-Git-Tag: v1.2.29~12 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ce1b06a72900f8c7a22db904ccc922452f5cdf88;p=e-mobility-charging-stations-simulator.git build: properly account build time Signed-off-by: Jérôme Benoit --- diff --git a/bundle.js b/bundle.js index dea5a97f..ec12c5da 100644 --- a/bundle.js +++ b/bundle.js @@ -10,8 +10,8 @@ const isDevelopmentBuild = env.BUILD === 'development'; const sourcemap = !!isDevelopmentBuild; console.info(chalk.green(`Building in ${isDevelopmentBuild ? 'development' : 'production'} mode`)); -console.time('Build time'); (async () => { + console.time('Build time'); await build({ entryPoints: ['./src/start.ts', './src/charging-station/ChargingStationWorker.ts'], bundle: true, @@ -74,5 +74,5 @@ console.time('Build time'); }), ], }); + console.timeEnd('Build time'); })(); -console.timeEnd('Build time');