This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { merge } from 'lodash-es'
55 * @param {Object } iconSet - Registered Icons object
66 * @returns {Object }
77 */
8- const parseIcons = ( iconSet ) => {
8+ const parseIcons = ( iconSet = { } ) => {
99 const parseIcon = ( iconObject ) => {
1010 const { icon } = iconObject
1111 // Is library icon
@@ -43,7 +43,7 @@ const parseIcons = (iconSet) => {
4343export const parsePackIcons = ( iconSet ) => {
4444 // TODO: Add support for other icon libraries
4545 // - Material Icons
46- // - Tailwind Icons
46+ // - Tailwind Icons (Hero icons)
4747 const packIcons = parseIcons ( iconSet )
4848 return packIcons
4949}
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ module.exports = function (moduleOptions) {
1919
2020 // Resolve icons
2121 let packIcons = { }
22- if ( options . icons && options . icons . iconPack ) {
23- packIcons = parsePackIcons ( options . icons . iconPack , options . icons . iconSet )
22+ if ( options . icons ) {
23+ packIcons = parsePackIcons ( options . icons . iconSet )
2424 }
2525
2626 // Transpile lodash-es
You can’t perform that action at this time.
0 commit comments