File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,29 @@ import isElectron from 'is-electron';
20
20
21
21
const AppRouter : any = isElectron ( ) ? HashRouter : BrowserRouter ;
22
22
23
- const MainRoute = Loadable ( ( ) => import ( './routes/Main' ) ) ;
23
+ const MainRoute = Loadable (
24
+ ( ) =>
25
+ import (
26
+ /* webpackChunkName: 'main' */ /* webpackPreload: true */ './routes/Main'
27
+ )
28
+ ) ;
24
29
25
- const EntryRoute = Loadable ( ( ) => import ( './routes/Entry' ) ) ;
30
+ const EntryRoute = Loadable (
31
+ ( ) =>
32
+ import (
33
+ /* webpackChunkName: 'entry' */ /* webpackPreload: true */ './routes/Entry'
34
+ )
35
+ ) ;
26
36
27
37
const PanelRoute = Loadable ( ( ) => import ( './routes/Panel' ) ) ;
28
38
29
- const InviteRoute = Loadable ( ( ) => import ( './routes/Invite' ) ) ;
39
+ const InviteRoute = Loadable (
40
+ ( ) =>
41
+ import (
42
+ /* webpackChunkName: 'invite' */ /* webpackPreload: true */
43
+ './routes/Invite'
44
+ )
45
+ ) ;
30
46
31
47
const AppProvider : React . FC < PropsWithChildren > = React . memo ( ( props ) => {
32
48
return (
You can’t perform that action at this time.
0 commit comments