After build ant'd is coming up with a bundle size between 60 KB and 80 KB after build. Docs say the work around is direct import with React lazy although it doesn't change file size at all. Example code :
const Row = React.lazy(() => import(/* webpackChunkName: "sula-antd" */ 'antd/lib/grid/row'));
const Col = React.lazy(() => import(/* webpackChunkName: "sula-antd" */ 'antd/lib/grid/col'));
// import { Row, Col } from "antd";
Is there a way to fix this issue to load my site in under 3 seconds?
My Github code: https://github.com/Michaelmw17/stunning-jdp/tree/master
Aucun commentaire:
Enregistrer un commentaire