Modularize imports of hero icons in compiler (#292)
This commit is contained in:
parent
d072216d2d
commit
73d538c7cf
|
@ -7,6 +7,13 @@ module.exports = {
|
||||||
externalDir: true,
|
externalDir: true,
|
||||||
optimizeCss: true,
|
optimizeCss: true,
|
||||||
modularizeImports: {
|
modularizeImports: {
|
||||||
|
'@heroicons/react/solid/?(((\\w*)?/?)*)': {
|
||||||
|
transform: '@heroicons/react/solid/{{ matches.[1] }}/{{member}}',
|
||||||
|
},
|
||||||
|
'@heroicons/react/outline/?(((\\w*)?/?)*)': {
|
||||||
|
transform: '@heroicons/react/outline/{{ matches.[1] }}/{{member}}',
|
||||||
|
},
|
||||||
|
|
||||||
lodash: {
|
lodash: {
|
||||||
transform: 'lodash/{{member}}',
|
transform: 'lodash/{{member}}',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user