Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Apr 8, 2024
1 parent 93e1c15 commit 3fb7913
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/app/prepare/prepareRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ export const routes = {
${app.pages
.map(
({ chunkFilePath, chunkName, path, routeMeta }) =>
` ${JSON.stringify(path)}: { loader: () => import(${chunkName ? `/* webpackChunkName: "${chunkName}" */` : ''}${JSON.stringify(chunkFilePath)}), meta: ${JSON.stringify(routeMeta)} },`,
` ${JSON.stringify(path)}: {
loader: () => import(${chunkName ? `/* webpackChunkName: "${chunkName}" */` : ''}${JSON.stringify(chunkFilePath)}),
meta: ${JSON.stringify(routeMeta)}
},`,
)
.join('\n')}
};
Expand Down

0 comments on commit 3fb7913

Please sign in to comment.