fix: make commit hash short version

This commit is contained in:
Percs 2024-10-11 18:49:20 -05:00
parent 9ea9863ced
commit 7c9a9e5441

View file

@ -69,7 +69,7 @@ export default defineConfig({
}), }),
new rspack.DefinePlugin({ new rspack.DefinePlugin({
COMMITHASH: JSON.stringify( 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, /\r?\n|\r/g,
"" ""
) )