chore: Replace fil:/// instead of file://

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-05-09 09:55:25 -04:00
1 parent 9f72b628be
commit 3b3d86c9d5
1 file changed
+3 -1
+3 -1
View File
@@ -43,7 +43,9 @@ const joinWithInitCwd = (relativePath: string): string => {
}; };
const resolve = async (input: string) => { const resolve = async (input: string) => {
return (await import.meta.resolve?.(input))?.replace("file://", ""); const filePath = await import.meta.resolve?.(input);
return filePath?.replace("file:///", "");
} }
const size = options["--output-size"] ?? 16; const size = options["--output-size"] ?? 16;