diff options
Diffstat (limited to 'node_modules/watchpack/lib/chokidar.js')
-rw-r--r-- | node_modules/watchpack/lib/chokidar.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/node_modules/watchpack/lib/chokidar.js b/node_modules/watchpack/lib/chokidar.js new file mode 100644 index 0000000..fa65e26 --- /dev/null +++ b/node_modules/watchpack/lib/chokidar.js @@ -0,0 +1,22 @@ +var v3Err; +try { + module.exports = require("chokidar"); + return; +} catch(e) { + v3Err = e; +} + +var v2Err; +try { + module.exports = require("watchpack-chokidar2"); + return; +} catch(e) { + v2Err = e; +} + +throw new Error( + "No version of chokidar is available. Tried chokidar@2 and chokidar@3.\n" + + "You could try to manually install any chokidar version.\n" + + "chokidar@3: " + v3Err + "\n" + + "chokidar@2: " + v2Err + "\n" +) |