Unverified Commit 7e17de98 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

docs: move optimizePackageImports to experimental (#55614)

Closes #55611 
parent a429e04f
......@@ -7,11 +7,13 @@ description:
Some packages can export hundreds or thousands of modules, which can cause performance issues in development and production.
Adding a package to `optimizePackageImports` will only load the modules you are actually using, while still giving you the convenience of writing import statements with many named exports.
Adding a package to `experimental.optimizePackageImports` will only load the modules you are actually using, while still giving you the convenience of writing import statements with many named exports.
```js filename="next.config.js"
module.exports = {
optimizePackageImports: ['package-name'],
experimental: {
optimizePackageImports: ['package-name'],
},
}
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment