1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: make build reproducible
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2025-04-09
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -59,7 +59,7 @@
};
export default async () => {
- const year = new Date().getFullYear();
+ const year = new Date(process.env.SOURCE_DATE_EPOCH ? (process.env.SOURCE_DATE_EPOCH * 1000) : new Date().getTime()).getFullYear();
const banner = `/*! Axios v${lib.version} Copyright (c) ${year} ${lib.author} and contributors */`;
return [
|