@@ -46,7 +46,7 @@ const collectDictionaryIcons = async () => {
46
46
legacy : iconDef . legacy ,
47
47
fileName : iconFileName ,
48
48
svg,
49
- output : `${ iconsOutputDirectory } /${ iconFileName } .js ` ,
49
+ output : `${ iconsOutputDirectory } /${ iconFileName } .ts ` ,
50
50
} ;
51
51
52
52
icons . push ( icon ) ;
@@ -77,7 +77,7 @@ const collectDictionaryIcons = async () => {
77
77
legacy : iconDef . legacy ,
78
78
fileName : iconFileName ,
79
79
svg,
80
- output : `${ iconsOutputDirectory } /${ iconFileName } .js ` ,
80
+ output : `${ iconsOutputDirectory } /${ iconFileName } .ts ` ,
81
81
} ;
82
82
83
83
icons . push ( icon ) ;
@@ -102,7 +102,7 @@ const collectDictionaryIcons = async () => {
102
102
legacy : iconDef . legacy ,
103
103
fileName : iconFileName ,
104
104
svg,
105
- output : `${ iconsOutputDirectory } /${ iconFileName } .js ` ,
105
+ output : `${ iconsOutputDirectory } /${ iconFileName } .ts ` ,
106
106
} ;
107
107
108
108
icons . push ( icon ) ;
@@ -141,7 +141,7 @@ const collectDiskIcons = async (icons) => {
141
141
legacy : true ,
142
142
fileName : iconFileName ,
143
143
svg,
144
- output : `${ iconsOutputDirectory } /${ iconFileName } .js ` ,
144
+ output : `${ iconsOutputDirectory } /${ iconFileName } .ts ` ,
145
145
} ;
146
146
147
147
icons . push ( icon ) ;
@@ -174,7 +174,7 @@ const generateJS = (icons) => {
174
174
return `{
175
175
name: "${ icon . name } ",
176
176
${ icon . legacy ? 'legacy: true,' : '' }
177
- path: "./icons/${ icon . fileName } .js",
177
+ path: import( "./icons/${ icon . fileName } .js") ,
178
178
}` . replace ( / \t / g, '' ) ; // Regex removes white space [NL]
179
179
} ) ;
180
180
0 commit comments