Here's a repro: https://github.com/ofagbemi/watchpack-symlinks
If I set followSymlinks: true and pass a path to a real directory with symlinks nested inside, the symlinked files don't get watched. followSymlinks only seems to work if the watched file or a directory itself is a symlink.
const wp = new Watchpack({ followSymlinks: true });
wp.watch({
files: [
"file_symlink", // watched correctly
],
directories: [
"directory_symlink", // real files inside the linked directory are watched correctly
"real_directory_containing_symlink", // symlink inside of directory isn't watched
],
});