Download next.js/packages/next/src/client/app-next-turbopack.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 978 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/app-next-turbopack.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/client/app-next-turbopack.ts
-
curl -L -o app-next-turbopack.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/app-next-turbopack.ts
978 Bytes
| import { appBootstrap } from './app-bootstrap' | |
| import { isRecoverableError } from './react-client-callbacks/on-recoverable-error' | |
| window.next.version += '-turbo' | |
| ;(self as any).__webpack_hash__ = '' | |
| // eslint-disable-next-line @next/internal/typechecked-require | |
| const instrumentationHooks = require('../lib/require-instrumentation-client') | |
| appBootstrap(() => { | |
| const { hydrate } = require('./app-index') as typeof import('./app-index') | |
| try { | |
| hydrate(instrumentationHooks) | |
| } finally { | |
| if (process.env.NODE_ENV !== 'production') { | |
| const { getComponentStack, getOwnerStack } = | |
| require('../next-devtools/userspace/app/errors/stitched-error') as typeof import('../next-devtools/userspace/app/errors/stitched-error') | |
| const { renderAppDevOverlay } = | |
| require('next/dist/compiled/next-devtools') as typeof import('next/dist/compiled/next-devtools') | |
| renderAppDevOverlay(getComponentStack, getOwnerStack, isRecoverableError) | |
| } | |
| } | |
| }) | |