Skip to content

Commit

Permalink
fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 25, 2022
1 parent fdb1470 commit f981922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/next/build/entries.ts
Expand Up @@ -527,6 +527,7 @@ export function finalizeEntrypoint({
...entry,
}
}

return {
dependOn:
name.startsWith('pages/') && name !== 'pages/_app'
Expand Down
3 changes: 2 additions & 1 deletion packages/next/client/app-index.tsx
Expand Up @@ -175,7 +175,8 @@ function RSCComponent(props: any): JSX.Element {

export function hydrate() {
if (process.env.NODE_ENV !== 'production') {
const HotReload: typeof import('./components/react-dev-overlay/hot-reloader-client').default = require('./components/react-dev-overlay/hot-reloader-client')
const HotReload: typeof import('./components/react-dev-overlay/hot-reloader-client').default =
require('./components/react-dev-overlay/hot-reloader-client').default

const rootLayoutMissingTagsError = (self as any)
.__next_root_layout_missing_tags_error
Expand Down

0 comments on commit f981922

Please sign in to comment.