Skip to content

Watching a directory doesn't watch nested symlinks when followSymlinks = true #190

@ofagbemi

Description

@ofagbemi

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
  ],
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions