Skip to content

Commit

Permalink
use default dev overlay export, match specific loader name
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 25, 2022
1 parent cf54007 commit 46ba060
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/entries.ts
Expand Up @@ -521,7 +521,7 @@ export function finalizeEntrypoint({
name !== CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH
) {
// TODO-APP: this is a temporary fix. @shuding is going to change the handling of server components
if (hasAppDir && entry.import.includes('flight')) {
if (hasAppDir && entry.import.includes('next-flight-client-entry-loader')) {
return {
dependOn: CLIENT_STATIC_FILES_RUNTIME_MAIN_APP,
...entry,
Expand Down
4 changes: 2 additions & 2 deletions packages/next/client/app-index.tsx
Expand Up @@ -175,8 +175,8 @@ function RSCComponent(props: any): JSX.Element {

export function hydrate() {
if (process.env.NODE_ENV !== 'production') {
const HotReload = require('./components/react-dev-overlay/hot-reloader-client')
typeof import('./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')

const rootLayoutMissingTagsError = (self as any)
.__next_root_layout_missing_tags_error

Expand Down

0 comments on commit 46ba060

Please sign in to comment.