aboutsummaryrefslogtreecommitdiffstats
path: root/svelte.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'svelte.config.js')
-rw-r--r--svelte.config.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/svelte.config.js b/svelte.config.js
index bcb9810..77a4461 100644
--- a/svelte.config.js
+++ b/svelte.config.js
@@ -2,6 +2,7 @@ import adapter from './adapter/index.js';
import { sveltePreprocess } from 'svelte-preprocess';
import autoprefixer from 'autoprefixer';
import { transform } from 'esbuild';
+import { readFileSync } from 'node:fs';
/** @type {import('@sveltejs/kit').Config} */
const config = {
@@ -43,10 +44,16 @@ const config = {
handleHttpError: 'ignore',
},
appDir: 'uwu',
- output: {
- bundleStrategy: 'single',
- },
embedded: true,
+ version: {
+ name: process.env.REPRODUCIBLE
+ ? `REPRODUCIBLE-BUILD-${readFileSync(
+ '.git/' +
+ readFileSync('.git/HEAD', 'utf-8').split('\n')[0].split(': ')[1],
+ 'utf-8'
+ ).trim()}`
+ : Date.now().toString(36),
+ },
},
};