mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
Merge branch 'main' of https://github.com/MercuryWorkshop/scramjet
This commit is contained in:
commit
fda8f4e5c1
1 changed files with 12 additions and 6 deletions
|
@ -68,12 +68,18 @@ export default defineConfig({
|
|||
VERSION: JSON.stringify(packagemeta.version),
|
||||
}),
|
||||
new rspack.DefinePlugin({
|
||||
COMMITHASH: JSON.stringify(
|
||||
execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).replace(
|
||||
/\r?\n|\r/g,
|
||||
""
|
||||
)
|
||||
),
|
||||
COMMITHASH: () => {
|
||||
try {
|
||||
return JSON.stringify(
|
||||
execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).replace(
|
||||
/\r?\n|\r/g,
|
||||
""
|
||||
)
|
||||
)
|
||||
} catch (e) {
|
||||
return "unknown";
|
||||
}
|
||||
},
|
||||
}),
|
||||
process.env.DEBUG === "true"
|
||||
? new RsdoctorRspackPlugin({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue