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:
parent
e6f18531eb
commit
e5aafff9ec
2 changed files with 8 additions and 9 deletions
|
@ -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 }) => {
|
||||||
|
|
|
@ -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;
|
|
||||||
};
|
|
Loading…
Add table
Reference in a new issue