Skip to content

Commit

Permalink
Disable entry skip
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed May 30, 2023
1 parent 3dacf5a commit ea21d5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
7 changes: 1 addition & 6 deletions packages/next/src/build/webpack/loaders/next-app-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,7 @@ async function createTreeCodeFromPath(
const defaultPath =
(await resolver(
`${appDirPrefix}${segmentPath}/${actualSegment}/default`
)) ??
(await resolver(
`next/dist/client/components/parallel-route-default`,
false,
true
))
)) ?? 'next/dist/client/components/parallel-route-default'

props[normalizeParallelKey(adjacentParallelSegment)] = `[
'__DEFAULT__',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,11 @@ export class ClientReferenceEntryPlugin {
continue
}

if (clientImports.length === 0 && actionImports.length === 0) {
continue
}
// TODO-APP: Enable these lines. This ensures no entrypoint is created for layout/page when there are no client components.
// Currently disabled because it causes test failures in CI.
// if (clientImports.length === 0 && actionImports.length === 0) {
// continue
// }

const relativeRequest = isAbsoluteRequest
? path.relative(compilation.options.context, entryRequest)
Expand Down

0 comments on commit ea21d5b

Please sign in to comment.