Skip to content

Commit 723e0cc

Browse files
authored
chore: typo in bootrap to bootstrap (#68517)
The exported function of a filename `page-bootstrap.ts` had typo as `pageBootrap` so fixed to `pageBootstrap`.
1 parent 15af7f4 commit 723e0cc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/next/src/client/next-dev-turbopack.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { initialize, version, router, emitter } from './'
33
import initHMR from './dev/hot-middleware-client'
44

5-
import { pageBootrap } from './page-bootstrap'
5+
import { pageBootstrap } from './page-bootstrap'
66
//@ts-expect-error requires "moduleResolution": "node16" in tsconfig.json and not .ts extension
77
import { connect } from '@vercel/turbopack-ecmascript-runtime/browser/dev/hmr-client/hmr-client.ts'
88
import type { TurbopackMsgToBrowser } from '../server/dev/hot-reloader-types'
@@ -46,7 +46,7 @@ initialize({
4646
onUpdateError: devClient.handleUpdateError,
4747
})
4848

49-
return pageBootrap(assetPrefix)
49+
return pageBootstrap(assetPrefix)
5050
})
5151
.catch((err) => {
5252
console.error('Error was not caught', err)

packages/next/src/client/next-dev.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import './webpack'
33
import { initialize, version, router, emitter } from './'
44
import initHMR from './dev/hot-middleware-client'
5-
import { pageBootrap } from './page-bootstrap'
5+
import { pageBootstrap } from './page-bootstrap'
66

77
window.next = {
88
version,
@@ -16,7 +16,7 @@ window.next = {
1616
const devClient = initHMR('webpack')
1717
initialize({ devClient })
1818
.then(({ assetPrefix }) => {
19-
return pageBootrap(assetPrefix)
19+
return pageBootstrap(assetPrefix)
2020
})
2121
.catch((err) => {
2222
console.error('Error was not caught', err)

packages/next/src/client/page-bootstrap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { RuntimeErrorHandler } from './components/react-dev-overlay/internal/hel
1616
import { REACT_REFRESH_FULL_RELOAD_FROM_ERROR } from './components/react-dev-overlay/shared'
1717
import { performFullReload } from './components/react-dev-overlay/pages/hot-reloader-client'
1818

19-
export function pageBootrap(assetPrefix: string) {
19+
export function pageBootstrap(assetPrefix: string) {
2020
connectHMR({ assetPrefix, path: '/_next/webpack-hmr' })
2121

2222
return hydrate({ beforeRender: displayContent }).then(() => {

0 commit comments

Comments
 (0)