Update index.js

This commit is contained in:
Mads Rasmussen
2024-06-20 22:18:39 +02:00
parent c3220a4295
commit 8ce03ce719

View File

@@ -174,7 +174,7 @@ const generateJS = (icons) => {
return `{
name: "${icon.name}",
${icon.legacy ? 'legacy: true,' : ''}
path: import("./icons/${icon.fileName}.js"),
path: () => import("./icons/${icon.fileName}.js"),
}`.replace(/\t/g, ''); // Regex removes white space [NL]
});