update: added chunkNames to lazyloaded chunks

This commit is contained in:
MTG2000
2022-08-16 17:07:18 +03:00
parent 3c9af29efc
commit 5bcd0892b7
3 changed files with 14 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ import styles from './styles.module.scss'
import { lazy, Suspense } from 'react'
import { RotatingLines } from 'react-loader-spinner'
const CommentsSection = lazy(() => import("src/features/Posts/Components/Comments"))
const CommentsSection = lazy(() => import( /* webpackChunkName: "comments_section" */ "src/features/Posts/Components/Comments"))
export default function PostDetailsPage() {
const { type: _type, id } = useParams();