Skip to content

Save reference to watcher in FileSystemLoader for async shutdown #1476

@lcrosetto

Description

@lcrosetto

FileSystemLoader does not keep a reference to the watcher:

const watcher = chokidar.watch(paths);

It would help to save the reference (to enable synchronous shutdown of chokidar with watcher.close()), as is done in NodeResolveLoader:

this.watcher = chokidar.watch();

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