diff --git a/bin/browser.js b/bin/browser.cjs similarity index 100% rename from bin/browser.js rename to bin/browser.cjs diff --git a/src/Browsershot.php b/src/Browsershot.php index 9a978313..a67c7221 100644 --- a/src/Browsershot.php +++ b/src/Browsershot.php @@ -918,7 +918,7 @@ protected function getFullCommand(array $command) { $nodeBinary = $this->nodeBinary ?: 'node'; - $binPath = $this->binPath ?: __DIR__.'/../bin/browser.js'; + $binPath = $this->binPath ?: __DIR__.'/../bin/browser.cjs'; $optionsCommand = $this->getOptionsCommand(json_encode($command));