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-app
# or
yarn create next-app --example modularize-imports modularize-imports-app
# or
pnpm create next-app --example modularize-imports modularize-imports-app
Deploy it to the cloud with Vercel (Documentation).