diff options
Diffstat (limited to 'scripts/build/build.mjs')
-rwxr-xr-x | scripts/build/build.mjs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index 45cda74..e37feb5 100755 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -19,11 +19,13 @@ import esbuild from "esbuild"; -import { commonOpts, globPlugins, isStandalone, watch } from "./common.mjs"; +import { commonOpts, globPlugins, isStandalone, VERSION, watch } from "./common.mjs"; const defines = { IS_STANDALONE: isStandalone, - IS_DEV: JSON.stringify(watch) + IS_DEV: JSON.stringify(watch), + VERSION: JSON.stringify(VERSION), + BUILD_TIMESTAMP: Date.now(), }; if (defines.IS_STANDALONE === "false") // If this is a local build (not standalone), optimise |