mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 18:07:42 +01:00
ci: Improve build speeds (#2778)
* Revert sync to async functions * Replace more sync fs functions * Format files * Fix build svelte package
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import base64SVG from '@lucide/build-icons/utils/base64SVG.mjs';
|
||||
|
||||
export default ({ componentName, iconName, children, getSvg, deprecated, deprecationReason }) => {
|
||||
const svgContents = getSvg();
|
||||
export default async ({
|
||||
componentName,
|
||||
iconName,
|
||||
children,
|
||||
getSvg,
|
||||
deprecated,
|
||||
deprecationReason,
|
||||
}) => {
|
||||
const svgContents = await getSvg();
|
||||
const svgBase64 = base64SVG(svgContents);
|
||||
|
||||
return `\
|
||||
|
||||
Reference in New Issue
Block a user