Skip to content

Commit

Permalink
Add @heroicons/react to modularizeImports (#53902)
Browse files Browse the repository at this point in the history
As discussed [here](https://vercel.slack.com/archives/C0591D8EN4C/p1691752316347649?thread_ts=1691743605.677919&cid=C0591D8EN4C), there're other popular icon and component libraries to be added until we have a better solution.
  • Loading branch information
shuding authored Aug 11, 2023
1 parent 9229f74 commit 599cde8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/next/src/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,15 @@ function assignDefaults(
'*': 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/{{ kebabCase member }}!lucide-react',
},
},
'@heroicons/react/20/solid': {
transform: '@heroicons/react/20/solid/esm/{{member}}',
},
'@heroicons/react/24/solid': {
transform: '@heroicons/react/24/solid/esm/{{member}}',
},
'@heroicons/react/24/outline': {
transform: '@heroicons/react/24/outline/esm/{{member}}',
},
ramda: {
transform: 'ramda/es/{{member}}',
},
Expand Down

0 comments on commit 599cde8

Please sign in to comment.