fix(web): remove warnings during the build (#7035)

* fix: remove warnings during the build

* fix: optimize chunks size

* fix: remove split vendor chunk strategy

* remove custom chunk

* Update web/src/routes/(user)/map/+page.svelte

* revert change

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
This commit is contained in:
martin 2024-02-12 23:03:26 +01:00 committed by GitHub
parent 84191e352e
commit c0a09d06a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import type { AssetResponseDto, ServerVersionResponseDto } from '@api';
import { Socket, io } from 'socket.io-client';
import { type Socket, io } from 'socket.io-client';
import { writable } from 'svelte/store';
import { loadConfig } from './server-config.store';
import { getAuthUser } from '$lib/utils/auth';

View File

@ -9,11 +9,12 @@
import { mapSettings } from '$lib/stores/preferences.store';
import { featureFlags } from '$lib/stores/server-config.store';
import { type MapMarkerResponseDto, api } from '@api';
import { isEqual, omit } from 'lodash-es';
import { isEqual } from 'lodash-es';
import { DateTime, Duration } from 'luxon';
import { onDestroy, onMount } from 'svelte';
import type { PageData } from './$types';
import Map from '$lib/components/shared-components/map/map.svelte';
import type { MapSettings } from '$lib/stores/preferences.store';
export let data: PageData;
@ -35,6 +36,9 @@
});
$: $featureFlags.map || goto(AppRoute.PHOTOS);
const omit = (obj: MapSettings, key: string) => {
return Object.fromEntries(Object.entries(obj).filter(([k]) => k !== key));
};
async function loadMapMarkers() {
if (abortController) {