Skip to content

Commit

Permalink
[icons] Add exports field to package.json (#43624)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Sep 10, 2024
1 parent 15490e4 commit 6f35367
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
8 changes: 0 additions & 8 deletions apps/pigment-css-vite-app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,4 @@ export default defineConfig({
splitVendorChunkPlugin(),
nodePolyfills(),
],
resolve: {
alias: [
{
find: /^@mui\/icons-material\/(.*)/,
replacement: '@mui/icons-material/esm/$1',
},
],
},
});
14 changes: 14 additions & 0 deletions packages/mui-icons-material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 6f35367

Please sign in to comment.