0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-11 01:18:24 -05:00

pr feedback

This commit is contained in:
martabal 2024-10-24 15:40:03 +02:00
parent e6f18531eb
commit e5aafff9ec
No known key found for this signature in database
GPG key ID: C00196E3148A52BD
2 changed files with 8 additions and 9 deletions

View file

@ -1,9 +1,16 @@
import overpass from '$lib/assets/fonts/overpass/Overpass.ttf?url'; import overpass from '$lib/assets/fonts/overpass/Overpass.ttf?url';
import overpassMono from '$lib/assets/fonts/overpass/OverpassMono.ttf?url'; import overpassMono from '$lib/assets/fonts/overpass/OverpassMono.ttf?url';
import { transpileFile } from '$lib/utils/app-utils';
import fouc from '$lib/utils/app?raw'; import fouc from '$lib/utils/app?raw';
import theme from '$lib/utils/theme?raw'; import theme from '$lib/utils/theme?raw';
import type { Handle } from '@sveltejs/kit'; import type { Handle } from '@sveltejs/kit';
import { ModuleKind, transpileModule } from 'typescript';
export const transpileFile = (content: string) => {
const result = transpileModule(content, {
compilerOptions: { module: ModuleKind.ES2020, removeComments: true },
});
return result.outputText;
};
// only used during the build to replace the variables from app.html // only used during the build to replace the variables from app.html
export const handle = (async ({ event, resolve }) => { export const handle = (async ({ event, resolve }) => {

View file

@ -1,8 +0,0 @@
import { ModuleKind, transpileModule } from 'typescript';
export const transpileFile = (content: string) => {
const result = transpileModule(content, {
compilerOptions: { module: ModuleKind.ES2020, removeComments: true },
});
return result.outputText;
};