We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
find
1 parent fa23b56 commit 3703019Copy full SHA for 3703019
1 file changed
packages/metro-file-map/src/crawlers/node.js
@@ -16,6 +16,7 @@ import H from '../constants';
16
import * as fastPath from '../lib/fast_path';
17
import {spawn} from 'child_process';
18
import * as fs from 'graceful-fs';
19
+import {platform} from 'os';
20
import * as path from 'path';
21
22
type Result = Array<[/* id */ string, /* mtime */ number, /* size */ number]>;
@@ -25,7 +26,7 @@ type Callback = (result: Result) => void;
25
26
async function hasNativeFindSupport(
27
forceNodeFilesystemAPI: boolean,
28
): Promise<boolean> {
- if (forceNodeFilesystemAPI) {
29
+ if (forceNodeFilesystemAPI || platform() === 'win32') {
30
return false;
31
}
32
0 commit comments