feat: added code spliting on main module

This commit is contained in:
javier ontiveros
2026-02-05 12:04:31 -06:00
committed by Adolfo R. Brandes
parent 852444af42
commit 35283dfdd3

View File

@@ -1,5 +1,3 @@
import Main from './Main';
const routes = [
{
id: 'org.openedx.frontend.route.learnerDashboard.main',
@@ -7,7 +5,10 @@ const routes = [
handle: {
role: 'org.openedx.frontend.role.dashboard'
},
Component: Main
async lazy () {
const module = await import('./Main');
return { Component: module.default };
},
}
];