Download next.js/packages/next/src/client/app-next.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/app-next.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/packages/next/src/client/app-next.ts
-
curl -L -o app-next.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/packages/next/src/client/app-next.ts
837 Bytes
| // This import must go first because it needs to patch webpack chunk loading | |
| // before React patches chunk loading. | |
| import './app-webpack' | |
| import { appBootstrap } from './app-bootstrap' | |
| const instrumentationHooks = | |
| // eslint-disable-next-line @next/internal/typechecked-require -- not a module | |
| require('../lib/require-instrumentation-client') | |
| appBootstrap(() => { | |
| const { hydrate } = require('./app-index') as typeof import('./app-index') | |
| // Include app-router and layout-router in the main chunk | |
| // eslint-disable-next-line @next/internal/typechecked-require -- Why not relative imports? | |
| require('next/dist/client/components/app-router') | |
| // eslint-disable-next-line @next/internal/typechecked-require -- Why not relative imports? | |
| require('next/dist/client/components/layout-router') | |
| hydrate(instrumentationHooks) | |
| }) | |