From 5c10f2677be3c3216f02902e2d49aa991a6ba990 Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Tue, 3 Dec 2024 17:02:59 +0100 Subject: [PATCH] chore(frontend): fix failing imports preventing vite from building --- public/app/angular/partials.ts | 4 ---- public/app/index.ts | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/public/app/angular/partials.ts b/public/app/angular/partials.ts index 853e784354c..b89a0d00cc4 100644 --- a/public/app/angular/partials.ts +++ b/public/app/angular/partials.ts @@ -4,10 +4,6 @@ import 'app/angular/panel/partials/query_editor_row.html?inline'; import 'app/angular/partials/http_settings_next.html?inline'; import 'app/angular/partials/tls_auth_settings.html?inline'; -import 'app/features/admin/partials/admin_home.html?inline'; -import 'app/features/admin/partials/edit_org.html?inline'; -import 'app/features/admin/partials/stats.html?inline'; -import 'app/features/admin/partials/styleguide.html?inline'; import 'app/features/annotations/partials/event_editor.html?inline'; import 'app/partials/confirm_modal.html?inline'; import 'app/partials/modal.html?inline'; diff --git a/public/app/index.ts b/public/app/index.ts index b6a710921cb..f86253c2196 100644 --- a/public/app/index.ts +++ b/public/app/index.ts @@ -2,7 +2,7 @@ import 'vite/modulepreload-polyfill'; import './core/trustedTypePolicies'; import './jquery'; -// TODO: Vite should have __wepack_public_path support. Not looked into it yet. +// TODO: Vite does this differently... // declare let __webpack_public_path__: string; // declare let __webpack_nonce__: string; @@ -26,7 +26,7 @@ import app from './app'; const prepareInit = async () => { if (process.env.frontend_dev_mock_api) { - return import('test/mock-api/worker').then((workerModule) => { + return import('../test/mock-api/worker').then((workerModule) => { workerModule.default.start({ onUnhandledRequest: 'bypass' }); }); }