fix compiler web build issue in master
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
-const denaliModule = () =>
- import('./modules/denali/denali.module').then(m => m.DenaliModule);
-
-const sugarloafModule = () =>
- import('./modules/sugarloaf/sugarloaf.module').then(m => m.SugarloafModule);
-
export const appRoutes: Routes = [
{
path: 'denali',
- loadChildren: denaliModule,
+ loadChildren: './modules/denali/denali.module#DenaliModule',
},
{
path: '**',
- loadChildren: sugarloafModule,
+ loadChildren: './modules/sugarloaf/sugarloaf.module#SugarloafModule',
},
];
