From 7c9a9e54414bcb8a10ff154e7bbf8e5ebacee37b Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:49:20 -0500 Subject: [PATCH] fix: make commit hash short version --- rspack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rspack.config.js b/rspack.config.js index f9f8e75..ac2f22d 100644 --- a/rspack.config.js +++ b/rspack.config.js @@ -69,7 +69,7 @@ export default defineConfig({ }), new rspack.DefinePlugin({ COMMITHASH: JSON.stringify( - execSync("git rev-parse HEAD", { encoding: "utf-8" }).replace( + execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).replace( /\r?\n|\r/g, "" )