build: publish frontend source maps

This commit is contained in:
2026-08-15 16:31:18 +00:00
parent 8399a120ed
commit e3234df34d
8 changed files with 54 additions and 0 deletions
@@ -0,0 +1,20 @@
import assert from 'node:assert/strict';
import path from 'node:path';
import { describe, it } from 'node:test';
import { loadConfigFromFile } from 'vite';
void describe('gateway frontend Vite config', () => {
void it('keeps production source maps enabled', async () => {
const configPath = path.resolve(import.meta.dirname, '../vite.config.ts');
const loaded = await loadConfigFromFile(
{ command: 'build', mode: 'production' },
configPath,
path.dirname(configPath),
undefined,
undefined,
'runner'
);
assert.equal(loaded?.config.build?.sourcemap, true);
});
});