From dcc082891b1090c77b412d5139d8b70ed50bdb36 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 29 Oct 2022 21:22:46 +0300 Subject: Enable `lazy` back --- vnext/src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vnext/src/index.js') diff --git a/vnext/src/index.js b/vnext/src/index.js index 59365d37..8064dd1f 100644 --- a/vnext/src/index.js +++ b/vnext/src/index.js @@ -1,10 +1,11 @@ -import { StrictMode } from 'react'; +import { StrictMode, lazy } from 'react'; import { hydrateRoot } from 'react-dom/client'; import { BrowserRouter } from 'react-router-dom'; import { CookiesProvider } from 'react-cookie'; import './index.css'; -import Juick from './App'; + +const Juick = lazy(() => import('./App')); const props = window.__PROPS__ ? JSON.parse(window.atob(window.__PROPS__)) : {}; -- cgit v1.2.3