Skip to content

Commit 3703019

Browse files
committed
Never try to use the shell find crawler on win32
1 parent fa23b56 commit 3703019

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/metro-file-map/src/crawlers

packages/metro-file-map/src/crawlers/node.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import H from '../constants';
1616
import * as fastPath from '../lib/fast_path';
1717
import {spawn} from 'child_process';
1818
import * as fs from 'graceful-fs';
19+
import {platform} from 'os';
1920
import * as path from 'path';
2021

2122
type Result = Array<[/* id */ string, /* mtime */ number, /* size */ number]>;
@@ -25,7 +26,7 @@ type Callback = (result: Result) => void;
2526
async function hasNativeFindSupport(
2627
forceNodeFilesystemAPI: boolean,
2728
): Promise<boolean> {
28-
if (forceNodeFilesystemAPI) {
29+
if (forceNodeFilesystemAPI || platform() === 'win32') {
2930
return false;
3031
}
3132

0 commit comments

Comments
 (0)