mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This ensures `optimizePackageImports` doesn't unexpectedly fail to apply for `pages` as they aren't transpiled/bundled by default without either `transpilePackages` being used or `experimental.bundlePagesExternals`. This also ensures our docs correctly show this config in the pages docs as currently in only shows in `app`. x-ref: [slack thread](https://vercel.slack.com/archives/C0676QZBWKS/p1710967294942029) Closes NEXT-2884
8 lines
493 B
Plaintext
8 lines
493 B
Plaintext
---
|
|
title: optimizePackageImports
|
|
description: API Reference for optmizedPackageImports Next.js Config Option
|
|
source: app/api-reference/next-config-js/compress
|
|
---
|
|
|
|
{/* DO NOT EDIT. The content of this doc is generated from the source above. To edit the content of this page, navigate to the source page in your editor. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
|