Skip to content

Commit 996a8f6

Browse files
committed
Remove vite detection on Windows
1 parent 406b1fc commit 996a8f6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/Commands/Concerns/SharesViteServer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ trait SharesViteServer
2727

2828
protected function shareViteServer($hmrServer)
2929
{
30+
$isWindows = strpos(php_uname('s'), 'Windows') !== false;
31+
if ($isWindows) {
32+
// Windows does not support non-blocking child processes from within ReactPHP.
33+
return;
34+
}
35+
3036
$this->info("Vite HMR server detected…", OutputInterface::VERBOSITY_VERBOSE);
3137

3238
$phpBinary = (new PhpExecutableFinder())->find();

builds/expose

90 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)