mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-17 22:03:50 +02:00
various bundle optimizations (#1549)
* fix: missing "@element-plus/icons-vue" dependency * fix: update vite (40% faster builds) * fix: don't include sentry in non-nightly builds * fix: swap to variable fonts & don't include font files in repo * fix: lazy load languages to not keep them in memory * nit: revert vite to stable * nit: retain `.json` message files in bundle * nit: remove bundle analyzer * fix: availableLocales does not include unloaded locales
This commit is contained in:
@@ -221,6 +221,7 @@
|
||||
useVRCXUpdaterStore
|
||||
} from '../stores';
|
||||
import { THEME_CONFIG, links, navDefinitions } from '../shared/constants';
|
||||
import { getSentry } from '../plugin';
|
||||
import { openExternalLink } from '../shared/utils';
|
||||
|
||||
import configRepository from '../service/config';
|
||||
@@ -737,12 +738,13 @@
|
||||
onMounted(async () => {
|
||||
await loadNavMenuConfig();
|
||||
|
||||
if (!sentryErrorReporting.value) return;
|
||||
if (!NIGHTLY || !sentryErrorReporting.value) return;
|
||||
|
||||
try {
|
||||
import('@sentry/vue').then((Sentry) => {
|
||||
const feedback = Sentry.getFeedback();
|
||||
feedback?.attachTo(document.getElementById('feedback'));
|
||||
});
|
||||
const Sentry = await getSentry();
|
||||
|
||||
const feedback = Sentry.getFeedback();
|
||||
feedback?.attachTo(document.getElementById('feedback'));
|
||||
} catch (error) {
|
||||
console.error('Error setting up Sentry feedback:', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user