@@ -2,11 +2,7 @@ import React from 'react';
22import { Navigate , IndexRouteObject , NonIndexRouteObject , Outlet } from 'react-router-dom' ;
33import { Layout } from './components/Layout' ;
44import { ErrorPage } from './components/ErrorPage' ;
5- import { ThemesHome } from './pages/theme/home' ;
65import { ThemeEditor } from './pages/theme/editor' ;
7- import { PageExample431 } from './pages/examples/Example431' ;
8-
9- import Home from './pages/home' ;
106
117import { BasicSetupExample } from './pages/extensions/basic-setup/example' ;
128import { ClassNameExample } from './pages/extensions/classname/example' ;
@@ -40,7 +36,7 @@ export const routes: MenuRouteObject[] = [
4036 {
4137 index : true ,
4238 label : 'Home' ,
43- Component : Home ,
39+ lazy : ( ) => import ( './pages/home' ) ,
4440 } ,
4541 {
4642 path : 'extensions' ,
@@ -174,7 +170,7 @@ export const routes: MenuRouteObject[] = [
174170 {
175171 path : 'home' ,
176172 label : 'Home' ,
177- Component : ThemesHome ,
173+ lazy : ( ) => import ( './pages/theme/home' ) ,
178174 } ,
179175 {
180176 path : 'data' ,
@@ -540,7 +536,12 @@ export const routes: MenuRouteObject[] = [
540536 {
541537 path : '431' ,
542538 label : 'How to remove all syntax highlighting?' ,
543- Component : PageExample431 ,
539+ lazy : ( ) => import ( './pages/examples/Example431' ) ,
540+ } ,
541+ {
542+ path : '455' ,
543+ label : 'CodeMirrorMerge use theme' ,
544+ lazy : ( ) => import ( './pages/examples/Example455' ) ,
544545 } ,
545546 {
546547 path : 'refs' ,
0 commit comments