You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -428,3 +433,28 @@ export async function urlToBuiltUrl(
428
433
true,
429
434
)
430
435
}
436
+
437
+
// Inspired by https://github.com/iconify/iconify/blob/main/packages/utils/src/svg/url.ts
438
+
functionsvgToDataURL(content: Buffer): string{
439
+
conststringContent=content.toString()
440
+
// If the SVG contains some text, any transformation is unsafe, and given that double quotes would then
441
+
// need to be escaped, the gain to use a data URI would be ridiculous if not negative
0 commit comments