Skip to content

Commit

Permalink
chore: 번들 name 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hae-on committed Sep 20, 2023
1 parent 10a3645 commit f956139
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions frontend/src/router/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,43 @@ const router = createBrowserRouter([
{
path: `${PATH.RECIPE}/:recipeId`,
async lazy() {
const { RecipeDetailPage } = await import('@/pages/RecipeDetailPage');
const { RecipeDetailPage } = await import(
/* webpackChunkName: "RecipeDetailPage" */ '@/pages/RecipeDetailPage'
);
return { Component: RecipeDetailPage };
},
},
{
path: PATH.MEMBER,
async lazy() {
const { MemberPage } = await import('@/pages/MemberPage');
const { MemberPage } = await import(/* webpackChunkName: "MemberPage" */ '@/pages/MemberPage');
return { Component: MemberPage };
},
},
{
path: `${PATH.MEMBER}/modify`,
async lazy() {
const { MemberModifyPage } = await import('@/pages/MemberModifyPage');
const { MemberModifyPage } = await import(
/* webpackChunkName: "MemberModifyPage" */ '@/pages/MemberModifyPage'
);
return { Component: MemberModifyPage };
},
},
{
path: `${PATH.MEMBER}/review`,
async lazy() {
const { MemberReviewPage } = await import('@/pages/MemberReviewPage');
const { MemberReviewPage } = await import(
/* webpackChunkName: "MemberReviewPage" */ '@/pages/MemberReviewPage'
);
return { Component: MemberReviewPage };
},
},
{
path: `${PATH.MEMBER}/recipe`,
async lazy() {
const { MemberRecipePage } = await import('@/pages/MemberRecipePage');
const { MemberRecipePage } = await import(
/* webpackChunkName: "MemberRecipePage" */ '@/pages/MemberRecipePage'
);
return { Component: MemberRecipePage };
},
},
Expand All @@ -66,7 +74,7 @@ const router = createBrowserRouter([
{
index: true,
async lazy() {
const { HomePage } = await import(/* webpackChunkName: "home" */ '@/pages/HomePage');
const { HomePage } = await import(/* webpackChunkName: "HomePage" */ '@/pages/HomePage');
return { Component: HomePage };
},
},
Expand All @@ -80,14 +88,14 @@ const router = createBrowserRouter([
{
path: PATH.LOGIN,
async lazy() {
const { LoginPage } = await import('@/pages/LoginPage');
const { LoginPage } = await import(/* webpackChunkName: "LoginPage" */ '@/pages/LoginPage');
return { Component: LoginPage };
},
},
{
path: `${PATH.LOGIN}/:authProvider`,
async lazy() {
const { AuthPage } = await import('@/pages/AuthPage');
const { AuthPage } = await import(/* webpackChunkName: "AuthPage" */ '@/pages/AuthPage');
return { Component: AuthPage };
},
},
Expand All @@ -105,7 +113,9 @@ const router = createBrowserRouter([
{
path: `${PATH.PRODUCT_LIST}/:category/:productId`,
async lazy() {
const { ProductDetailPage } = await import('@/pages/ProductDetailPage');
const { ProductDetailPage } = await import(
/* webpackChunkName: "ProductDetailPage" */ '@/pages/ProductDetailPage'
);
return { Component: ProductDetailPage };
},
},
Expand All @@ -123,28 +133,30 @@ const router = createBrowserRouter([
{
path: `${PATH.PRODUCT_LIST}/:category`,
async lazy() {
const { ProductListPage } = await import('@/pages/ProductListPage');
const { ProductListPage } = await import(/* webpackChunkName: "ProductListPage" */ '@/pages/ProductListPage');
return { Component: ProductListPage };
},
},
{
path: PATH.RECIPE,
async lazy() {
const { RecipePage } = await import('@/pages/RecipePage');
const { RecipePage } = await import(/* webpackChunkName: "RecipePage" */ '@/pages/RecipePage');
return { Component: RecipePage };
},
},
{
path: `${PATH.SEARCH}/integrated`,
async lazy() {
const { IntegratedSearchPage } = await import('@/pages/IntegratedSearchPage');
const { IntegratedSearchPage } = await import(
/* webpackChunkName: "IntegratedSearchPage" */ '@/pages/IntegratedSearchPage'
);
return { Component: IntegratedSearchPage };
},
},
{
path: `${PATH.SEARCH}/:searchVariant`,
async lazy() {
const { SearchPage } = await import('@/pages/SearchPage');
const { SearchPage } = await import(/* webpackChunkName: "SearchPage" */ '@/pages/SearchPage');
return { Component: SearchPage };
},
},
Expand Down

0 comments on commit f956139

Please sign in to comment.