There was an error while loading. Please reload this page.
1 parent 183de23 commit 3cc73ceCopy full SHA for 3cc73ce
src/helpers.ts
@@ -32,7 +32,11 @@ export function cacheClearableMemoize<T extends AnyFunction>(
32
export function resolveRawEntry(entry: RawEntry): ResolvedEntry[] {
33
const {from, to, options} = entry;
34
35
-const srcs = glob.sync(from, {nodir: true, absolute: true});
+// absolute paths are separated by a forward slash in windows,
36
+// so we need to normalize them.
37
+// see https://github.com/isaacs/node-glob/issues/419
38
+const normalize = path.normalize.bind(path);
39
+const srcs = glob.sync(from, {nodir: true, absolute: true}).map(normalize);
40
41
return srcs.map((src) => {
42
let dest: string;
0 commit comments