Skip to content

Commit 27258e4

Browse files
committed
skip data URIs in resource globbing
1 parent 7609718 commit 27258e4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/command/render/resources.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ export async function resolveFileResources(
5252
...excludeDirs,
5353
);
5454

55-
const absPathGlobs = globs.map((glob) => {
55+
const absPathGlobs = globs.filter((glob) => {
56+
// skip data uris
57+
return !glob.startsWith("data:");
58+
}).map((glob) => {
5659
return isAbsolute(glob) ? glob : join(rootDir, glob);
5760
});
5861

0 commit comments

Comments
 (0)