Cleanup
This commit is contained in:
8
node_modules/chokidar/index.js
generated
vendored
8
node_modules/chokidar/index.js
generated
vendored
@@ -48,7 +48,8 @@ const {
|
||||
EMPTY_FN,
|
||||
|
||||
isWindows,
|
||||
isMacos
|
||||
isMacos,
|
||||
isIBMi
|
||||
} = require('./lib/constants');
|
||||
|
||||
const stat = promisify(fs.stat);
|
||||
@@ -330,6 +331,11 @@ constructor(_opts) {
|
||||
opts.usePolling = isMacos;
|
||||
}
|
||||
|
||||
// Always default to polling on IBM i because fs.watch() is not available on IBM i.
|
||||
if(isIBMi) {
|
||||
opts.usePolling = true;
|
||||
}
|
||||
|
||||
// Global override (useful for end-developers that need to force polling for all
|
||||
// instances of chokidar, regardless of usage/dependency depth)
|
||||
const envPoll = process.env.CHOKIDAR_USEPOLLING;
|
||||
|
||||
Reference in New Issue
Block a user