mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-23 02:59:21 +01:00
Add support for preact
This commit is contained in:
@@ -13,7 +13,6 @@ export default async ({
|
||||
const svgContents = await getSvg();
|
||||
const svgBase64 = base64SVG(svgContents);
|
||||
|
||||
|
||||
return `
|
||||
import createLucideIcon from '../createLucideIcon';
|
||||
import { IconNode } from '../types';
|
||||
@@ -31,7 +30,9 @@ export const __iconNode: IconNode = ${JSON.stringify(children)}
|
||||
* @returns {JSX.Element} JSX Element
|
||||
* ${deprecated ? `@deprecated ${deprecationReason}` : ''}
|
||||
*/
|
||||
const ${componentName} = createLucideIcon('${componentName}', __iconNode${iconNameAliases != null ? `, ${JSON.stringify(iconNameAliases)}` : ''});
|
||||
const ${componentName} = createLucideIcon('${componentName}', __iconNode${
|
||||
iconNameAliases != null ? `, ${JSON.stringify(iconNameAliases)}` : ''
|
||||
});
|
||||
|
||||
export default ${componentName};
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user