Code-split feature pages and admin shell with React.lazy
The dashboard (recharts, ~120 kB gzip), tracing, troubleshoot, actions and bootstrap wizard now load on demand, and the admin panel is split out of the entry chunk so anonymous visitors only download the login page (~134 kB gzip instead of ~557 kB).
This commit is contained in:
+1
-1
@@ -12,8 +12,8 @@ import './index.css';
|
||||
import App from './App';
|
||||
import LoginPage from './pages/LoginPage';
|
||||
import OAuthCallback from './pages/OAuthCallback';
|
||||
import AdminPanel from './pages/AdminPanel';
|
||||
import NotFound from './pages/NotFound';
|
||||
import { AdminPanel } from './pages/AdminPanel.lazy';
|
||||
import { ProtectedRoute } from './components/layout/ProtectedRoute';
|
||||
import { getBasePath } from './lib/basePath';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user