Don't force chokidar@2 to be downloaded from registry.npmjs.org (#12182)
This commit is contained in:
@@ -116,10 +116,10 @@ process.on("uncaughtException", function (err) {
|
||||
|
||||
export function requireChokidar(): Object {
|
||||
try {
|
||||
// todo(babel 8): revert `chokidarAt2` hack
|
||||
// todo(babel 8): revert `@nicolo-ribaudo/chokidar-2` hack
|
||||
return parseInt(process.version) >= 8
|
||||
? require("chokidar")
|
||||
: require("chokidarAt2");
|
||||
: require("@nicolo-ribaudo/chokidar-2");
|
||||
} catch (err) {
|
||||
console.error(
|
||||
"The optional dependency chokidar failed to install and is required for " +
|
||||
|
||||
Reference in New Issue
Block a user