UNPKG

667 BPlain TextView Raw
1import { DI } from '@leanup/lib/helpers/injector';
2export const importCatch = (error: unknown): void => {
3 console.warn(error);
4};
5
6export const run = (name: string, version: string | null, bootstrap: Function): void => {
7 DI.register('Framework', {
8 name,
9 version,
10 });
11 import(
12 /* webpackMode: "eager" */
13 /* webpackChunkName: "shares.register" */
14 './shares/register'
15 )
16 .then(() => {
17 import(
18 /* webpackMode: "eager" */
19 /* webpackChunkName: "shares.routing" */
20 './shares/routing'
21 )
22 .then(() => {
23 bootstrap();
24 })
25 .catch(importCatch);
26 })
27 .catch(importCatch);
28};