perf(web): remove legacy theme from production bundle

This commit is contained in:
lingniu
2026-07-16 00:47:52 +08:00
parent 6506c0f1f0
commit c00f50551a
4 changed files with 20 additions and 4 deletions

View File

@@ -0,0 +1,9 @@
import { describe, expect, test } from 'vitest';
import mainSource from '../main.tsx?raw';
describe('V2 production entry', () => {
test('does not load the legacy Semi UI theme and global stylesheet', () => {
expect(mainSource).not.toContain("./styles/global.css");
expect(mainSource).toContain("./v2/styles/v2.css");
});
});