remove sinon and moment locales to shrink client bundle

This commit is contained in:
Phillip Thelen
2024-05-22 11:24:31 +02:00
parent 435047cace
commit 1f5de1ab42
5 changed files with 120 additions and 32 deletions

View File

@@ -36,7 +36,7 @@ setUpLogging();
setupAnalytics(); // just create queues for analytics, no scripts loaded at this time
const store = getStore();
if (process.env.TIME_TRAVEL_ENABLED) {
if (process.env.TIME_TRAVEL_ENABLED === 'true') {
(async () => {
const sinon = await import('sinon');
if (axios.defaults.headers.common['x-api-user']) {