Skip to content

Commit f630cb8

Browse files
authored
Add mui-core to the default optimizePackageImports list (#55554)
Feedback from #48748 (comment). As per my testing, an App Router route of ```tsx 'use client' import { Button } from 'mui-core' export default function Page() { return <Button>Hi</Button> } ``` was improved from `2.4s (1221 modules)` to `1458ms (649 modules)` for the local dev.
1 parent caa9083 commit f630cb8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/next/src/server/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ function assignDefaults(
724724
'react-use',
725725
'@material-ui/icons',
726726
'@tabler/icons-react',
727+
'mui-core',
727728
]),
728729
]
729730

0 commit comments

Comments
 (0)