From ce1b06a72900f8c7a22db904ccc922452f5cdf88 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 30 Nov 2023 22:29:18 +0100 Subject: [PATCH] build: properly account build time MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- bundle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); -- 2.34.1