diff --git a/apps/pigment-css-vite-app/vite.config.ts b/apps/pigment-css-vite-app/vite.config.ts index 2be1c60009bb98..1aeffb286e54bb 100644 --- a/apps/pigment-css-vite-app/vite.config.ts +++ b/apps/pigment-css-vite-app/vite.config.ts @@ -47,12 +47,4 @@ export default defineConfig({ splitVendorChunkPlugin(), nodePolyfills(), ], - resolve: { - alias: [ - { - find: /^@mui\/icons-material\/(.*)/, - replacement: '@mui/icons-material/esm/$1', - }, - ], - }, }); diff --git a/packages/mui-icons-material/package.json b/packages/mui-icons-material/package.json index c41265b5d3145c..fe505eaefb66ff 100644 --- a/packages/mui-icons-material/package.json +++ b/packages/mui-icons-material/package.json @@ -83,5 +83,19 @@ }, "engines": { "node": ">=14.0.0" + }, + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./esm/index.js", + "require": "./index.js" + }, + "./*": { + "types": "./*.d.ts", + "import": "./esm/*.js", + "require": "./*.js" + }, + "./esm/*": "./esm/*.js", + "./esm/*.js": "./esm/*.js" } }