From a7c99243479a27acd9cdedc5fac4ceae2ff47d47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 30 Dec 2023 14:58:10 +0100 Subject: [PATCH] refactor: cleanup bundling code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- bundle.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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({ -- 2.34.1