Modularize imports of hero icons in compiler (#292)

This commit is contained in:
Marshall Polaris 2022-05-22 12:40:34 -07:00 committed by GitHub
parent d072216d2d
commit 73d538c7cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,13 @@ module.exports = {
externalDir: true,
optimizeCss: true,
modularizeImports: {
'@heroicons/react/solid/?(((\\w*)?/?)*)': {
transform: '@heroicons/react/solid/{{ matches.[1] }}/{{member}}',
},
'@heroicons/react/outline/?(((\\w*)?/?)*)': {
transform: '@heroicons/react/outline/{{ matches.[1] }}/{{member}}',
},
lodash: {
transform: 'lodash/{{member}}',
},