chokidar.js 420 B

12345678910111213141516171819202122
  1. var v3Err;
  2. try {
  3. module.exports = require("chokidar");
  4. return;
  5. } catch(e) {
  6. v3Err = e;
  7. }
  8. var v2Err;
  9. try {
  10. module.exports = require("watchpack-chokidar2");
  11. return;
  12. } catch(e) {
  13. v2Err = e;
  14. }
  15. throw new Error(
  16. "No version of chokidar is available. Tried chokidar@2 and chokidar@3.\n" +
  17. "You could try to manually install any chokidar version.\n" +
  18. "chokidar@3: " + v3Err + "\n" +
  19. "chokidar@2: " + v2Err + "\n"
  20. )