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'
5
5
* @param {Object } iconSet - Registered Icons object
6
6
* @returns {Object }
7
7
*/
8
- const parseIcons = ( iconSet ) => {
8
+ const parseIcons = ( iconSet = { } ) => {
9
9
const parseIcon = ( iconObject ) => {
10
10
const { icon } = iconObject
11
11
// Is library icon
@@ -43,7 +43,7 @@ const parseIcons = (iconSet) => {
43
43
export const parsePackIcons = ( iconSet ) => {
44
44
// TODO: Add support for other icon libraries
45
45
// - Material Icons
46
- // - Tailwind Icons
46
+ // - Tailwind Icons (Hero icons)
47
47
const packIcons = parseIcons ( iconSet )
48
48
return packIcons
49
49
}
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ module.exports = function (moduleOptions) {
19
19
20
20
// Resolve icons
21
21
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 )
24
24
}
25
25
26
26
// Transpile lodash-es
You can’t perform that action at this time.
0 commit comments