diff options
Diffstat (limited to 'demos/css-stress-test/nexty/client.development.tsx')
-rw-r--r-- | demos/css-stress-test/nexty/client.development.tsx | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/demos/css-stress-test/nexty/client.development.tsx b/demos/css-stress-test/nexty/client.development.tsx index f15ccee28..778df6f12 100644 --- a/demos/css-stress-test/nexty/client.development.tsx +++ b/demos/css-stress-test/nexty/client.development.tsx @@ -1,10 +1,43 @@ globalThis.process = { platform: "posix", env: {}, + browser: true, }; import * as ReactDOM from "react-dom"; import App from "next/app"; +import mitt, { MittEmitter } from "next/dist/shared/lib/mitt"; +import { RouterContext } from "next/dist/shared/lib/router-context"; +import Router, { + AppComponent, + AppProps, + delBasePath, + hasBasePath, + PrivateRouteInfo, +} from "next/dist/shared/lib/router/router"; +import { isDynamicRoute } from "next/dist/shared/lib/router/utils/is-dynamic"; +import { + urlQueryToSearchParams, + assign, +} from "next/dist/shared/lib/router/utils/querystring"; +import { setConfig } from "next/dist/shared/lib/runtime-config"; +import { + getURL, + loadGetInitialProps, + NEXT_DATA, + ST, +} from "next/dist/shared/lib/utils"; +import { Portal } from "next/dist/client/portal"; +import initHeadManager from "next/dist/client/head-manager"; +import PageLoader, { StyleSheetTuple } from "next/dist/client/page-loader"; +import measureWebVitals from "next/dist/client/performance-relayer"; +import { RouteAnnouncer } from "next/dist/client/route-announcer"; +import { + createRouter, + makePublicRouterInstance, +} from "next/dist/client/router"; +import "./renderDocument"; +export const emitter: MittEmitter<string> = mitt(); export default function boot(EntryPointNamespace, loader) { _boot(EntryPointNamespace); @@ -26,6 +59,7 @@ function _boot(EntryPointNamespace) { } const props = { ...globalThis.NEXT_DATA.props }; + const PageComponent = EntryPointNamespace.default; ReactDOM.hydrate( <App Component={PageComponent} pageProps={props.pageProps}></App>, |