Skip to content

Commit

Permalink
merge canary
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Oct 27, 2022
1 parent ed26f79 commit b9b6254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
SERVER_DIRECTORY,
COMPILER_NAMES,
CompilerNameValues,
APP_CLIENT_INTERNALS,
} from '../shared/lib/constants'
import { execOnce } from '../shared/lib/utils'
import { NextConfigComplete } from '../server/config-shared'
Expand Down
9 changes: 3 additions & 6 deletions packages/next/client/app-next.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { appBootstrap } from './app-bootstrap'

// Include app-router and layout-router in the main chunk
require('next/dist/client/components/app-router')
require('next/dist/client/components/layout-router')
require('react')
require('next/dist/compiled/react-server-dom-webpack/client')

appBootstrap(() => {
// Include app-router and layout-router in the main chunk
require('next/dist/client/components/app-router')
require('next/dist/client/components/layout-router')
const { hydrate } = require('./app-index')
hydrate()
})

0 comments on commit b9b6254

Please sign in to comment.