chore(frontend): fix failing imports preventing vite from building

This commit is contained in:
Jack Westbrook
2025-03-03 09:49:20 +01:00
parent 16ae94dadc
commit 5c10f2677b
2 changed files with 2 additions and 6 deletions
-4
View File
@@ -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';
+2 -2
View File
@@ -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' });
});
}