hasChanged polling or an inotify Watcher.
Modification time check
Watcher
otter-utils inotify: isModified, isDeleted, isCreated, isMoved, isIgnored.
Imports and multiple paths
When usingloadWithImports, result.paths lists every file touched. Watch all of them or watch directories that contain imported fragments.

