Reduce bundle size & check it in CI (#7395)

This commit is contained in:
Pascal Birchler
2025-09-04 23:00:27 +02:00
committed by GitHub
parent 35a841f71a
commit c38247ed5c
10 changed files with 184 additions and 432 deletions
@@ -24,8 +24,8 @@ import * as glob from 'glob';
vi.mock('glob', { spy: true });
vi.mock('mime-types', () => {
const lookup = (filename: string) => {
vi.mock('mime', () => {
const getType = (filename: string) => {
if (filename.endsWith('.ts') || filename.endsWith('.js')) {
return 'text/plain';
}
@@ -45,9 +45,9 @@ vi.mock('mime-types', () => {
};
return {
default: {
lookup,
getType,
},
lookup,
getType,
};
});