diff --git a/src/App.vue b/src/App.vue index cf12112..dbbba97 100644 --- a/src/App.vue +++ b/src/App.vue @@ -57,7 +57,7 @@ const showApiKey = ref(false); const hackatimeDirectories = ref(null); const sessionStats = ref(null); const presenceData = ref(null); -const presenceRefreshInterval = ref(null); +const presenceRefreshInterval = ref | null>(null); const presenceFetchInProgress = ref(false); const oauthUrl = ref(null); const nextPresenceFetchAllowedAt = ref(0); diff --git a/src/components/UserProfileCard.vue b/src/components/UserProfileCard.vue index 9aa8a12..3c4e7d1 100644 --- a/src/components/UserProfileCard.vue +++ b/src/components/UserProfileCard.vue @@ -144,7 +144,7 @@ const sessionState = ref({ }); const isLoading = ref(true); -let sessionRefreshInterval: number | null = null; +let sessionRefreshInterval: ReturnType | null = null; const userEmail = computed(() => { diff --git a/vite.config.ts b/vite.config.ts index c081984..96042fc 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,6 +14,20 @@ export default defineConfig(async () => ({ __SENTRY_ENVIRONMENT__: JSON.stringify(process.env.SENTRY_ENVIRONMENT || 'development'), }, + build: { + rollupOptions: { + output: { + manualChunks: { + 'vendor-vue': ['vue', 'vue-chartjs'], + 'vendor-sentry': ['@sentry/vue'], + 'vendor-charts': ['chart.js'], + 'vendor-tauri': ['@tauri-apps/api', '@tauri-apps/plugin-deep-link', '@tauri-apps/plugin-opener', '@tauri-apps/plugin-process', '@tauri-apps/plugin-updater'], + 'vendor-posthog': ['posthog-js'], + }, + }, + }, + chunkSizeWarningLimit: 600, + }, clearScreen: false,