This example shows how to use the modularizeImports config option.
Preview the example live on StackBlitz:
Deploy the example using Vercel:
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example modularize-imports modularize-imports-appyarn create next-app --example modularize-imports modularize-imports-apppnpm create next-app --example modularize-imports modularize-imports-appDeploy it to the cloud with Vercel (Documentation).