react-code-dataset / next.js /docs /02-pages /04-api-reference /04-config /01-next-config-js /bundlePagesRouterDependencies.mdx
Download next.js/docs/02-pages/04-api-reference/04-config/01-next-config-js/bundlePagesRouterDependencies.mdx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 979 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/docs/02-pages/04-api-reference/04-config/01-next-config-js/bundlePagesRouterDependencies.mdx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/docs/02-pages/04-api-reference/04-config/01-next-config-js/bundlePagesRouterDependencies.mdx
-
curl -L -o bundlePagesRouterDependencies.mdx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/docs/02-pages/04-api-reference/04-config/01-next-config-js/bundlePagesRouterDependencies.mdx
979 Bytes
| title: bundlePagesRouterDependencies | |
| description: Enable automatic dependency bundling for Pages Router | |
| Enable automatic server-side dependency bundling for Pages Router applications. Matches the automatic dependency bundling in App Router. | |
| ```js filename="next.config.js" | |
| /** @type {import('next').NextConfig} */ | |
| const nextConfig = { | |
| bundlePagesRouterDependencies: true, | |
| } | |
| module.exports = nextConfig | |
| ``` | |
| Explicitly opt-out certain packages from being bundled using the [`serverExternalPackages`](/docs/pages/api-reference/config/next-config-js/serverExternalPackages) option. | |
| ## Version History | |
| | Version | Changes | | |
| | --------- | --------------------------------------------------------------------------------------------------------- | | |
| | `v15.0.0` | Moved from experimental to stable. Renamed from `bundlePagesExternals` to `bundlePagesRouterDependencies` | | |