Support generating eject comments for .svg files

This commit is contained in:
Joseph Garrone 2024-12-20 13:22:15 +01:00
parent 3191954dda
commit c39c450e90

View File

@ -41,7 +41,7 @@ export async function getUiModuleFileSourceCodeReadyToBeCopied(params: {
return [`/**`, ...lines.map(line => ` * ${line}`), ` */`].join("\n");
}
if (fileRelativePath.endsWith(".html")) {
if (fileRelativePath.endsWith(".html") || fileRelativePath.endsWith(".svg")) {
return [`<!--`, ...lines.map(line => ` ${line}`), `-->`].join("\n");
}