import { configure } from 'mobx' ; import { App , PluginManifest } from '@cloudbeaver/core-di' ; import { showErrorPage } from './ErrorPage' ; import { coreManifests } from './manifest' ; import { renderLayout } from './renderLayout' ; export async function bootstrap ( plugins ) { configure ( { enforceActions : 'never' } ) ; const app = new App ( [ ... coreManifests , ... plugins ] ) ; app . registerServices ( ) ; try { await app . initializeServices ( ) ; await app . loadServices ( ) ; renderLayout ( app . getServiceInjector ( ) ) ; } catch ( e ) { console . error ( e ) ; showErrorPage ( ) ; throw e ; } }