Skip to content

Commit ceb998d

Browse files
committed
windows fix
1 parent 154e8a4 commit ceb998d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/transformer.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Flags = {
3838
};
3939

4040
const get = async (globPattern: string): Promise<File[]> => {
41-
const files = await glob(globPattern);
41+
const files = await glob(globPattern.replace(/\\/g, '/'), { posix: true });
4242
return files
4343
.sort()
4444
.reverse()
@@ -60,8 +60,6 @@ const shortenFilenames = (sourcePath: string, files: File[]): File[] => {
6060
}));
6161
};
6262

63-
const noop = (s: string): string => s;
64-
6563
export const transformSvg = (
6664
svg: string,
6765
options: {

0 commit comments

Comments
 (0)