Skip to content

Commit

Permalink
next.config.js: modularizeImports is not experimental anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecuvalo committed Mar 7, 2023
1 parent a036db7 commit 0435d41
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ const nextConfig = {
experimental: {
externalDir: true,
scrollRestoration: true,
},

// N.B. This is super important so that our bundles don't slow down the whole site.
modularizeImports: {
'@mui/material': {
transform: '@mui/material/{{member}}',
},
'@mui/icons-material': {
transform: '@mui/icons-material/{{member}}',
},
// N.B. This is super important so that our bundles don't slow down the whole site.
modularizeImports: {
'@mui/material': {
transform: '@mui/material/{{member}}',
},
'@mui/icons-material': {
transform: '@mui/icons-material/{{member}}',
},
},

Expand Down

0 comments on commit 0435d41

Please sign in to comment.