Unverified Commit 599cde86 authored by Shu Ding's avatar Shu Ding Committed by GitHub

Add `@heroicons/react` to `modularizeImports` (#53902)

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.
parent 9229f74b
...@@ -721,6 +721,15 @@ function assignDefaults( ...@@ -721,6 +721,15 @@ function assignDefaults(
'*': 'modularize-import-loader?name={{ member }}&from=default&as=default&join=../esm/icons/{{ kebabCase member }}!lucide-react', '*': '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: { ramda: {
transform: 'ramda/es/{{member}}', transform: 'ramda/es/{{member}}',
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment