Skip to content

Commit 87aad6d

Browse files
authored
[code-infra] Fix utils bundle size entrypoint (#43304)
1 parent eebde2e commit 87aad6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/sizeSnapshot/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async function getWebpackEntries() {
127127
...coreComponents,
128128
{
129129
id: '@material-ui/utils',
130-
path: 'packages/mui-utils/build/index.js',
130+
path: 'packages/mui-utils/build/esm/index.js',
131131
},
132132
// TODO: Requires webpack v5
133133
// Resolution of webpack/acorn to 7.x is blocked by nextjs (https://github.com/vercel/next.js/issues/11947)
@@ -195,7 +195,7 @@ function createWebpackConfig(entry, environment) {
195195
'@mui/styles': path.join(workspaceRoot, 'packages/mui-styles/build'),
196196
'@mui/system': path.join(workspaceRoot, 'packages/mui-system/build'),
197197
'@mui/private-theming': path.join(workspaceRoot, 'packages/mui-private-theming/build'),
198-
'@mui/utils': path.join(workspaceRoot, 'packages/mui-utils/build'),
198+
'@mui/utils': path.join(workspaceRoot, 'packages/mui-utils/build/esm'),
199199
'@mui/base': path.join(workspaceRoot, 'packages/mui-base/build'),
200200
'@mui/material-nextjs': path.join(workspaceRoot, 'packages/mui-material-nextjs/build'),
201201
'@mui/joy': path.join(workspaceRoot, 'packages/mui-joy/build'),

0 commit comments

Comments
 (0)