Skip to content

[core] Define rules to modularize packages in Next.js #38736

Open
@michaldudak

Description

@michaldudak

From #35457 (comment)

we can scale this (modularizing the icons package) to all the MUI npm packages, beyond @mui/icons-material. It could be done with special rules, like in https://github.com/vercel/next.js/blob/261db496f7cf04b70f078a6eae0c8baf6fe5c238/packages/next/src/server/config.ts#L738. I didn't have time in vercel/next.js#51953 to do it right, there was an urgency to fix it before it was rolled from their canary release to stable. Then, the question is is the Next.js job to keep this up to date? Is there a similar opportunity with Vite, should we update the Vite example as well? At the end of the day, it's about improving the DX.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreInfrastructure work going on behind the scenesenhancementThis is not a bug, nor a new featurenextjsperformance

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions