mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -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),
|
VERSION: JSON.stringify(packagemeta.version),
|
||||||
}),
|
}),
|
||||||
new rspack.DefinePlugin({
|
new rspack.DefinePlugin({
|
||||||
COMMITHASH: JSON.stringify(
|
COMMITHASH: () => {
|
||||||
execSync("git rev-parse --short HEAD", { encoding: "utf-8" }).replace(
|
try {
|
||||||
/\r?\n|\r/g,
|
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"
|
process.env.DEBUG === "true"
|
||||||
? new RsdoctorRspackPlugin({
|
? new RsdoctorRspackPlugin({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue