We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 570334c commit 3342d9fCopy full SHA for 3342d9f
src/preview.ts
@@ -169,11 +169,8 @@ class FileWatchers {
169
) {
170
const watchers = new FileWatchers();
171
const {files, imports} = parseResult;
172
- for (const name of new Set([
173
- ...files.map((f) => join(dirname(path), f.name)),
174
- ...imports.map((i) => join(dirname(path), i.name))
175
- ])) {
176
- const watchPath = FileWatchers.getWatchPath(root, name);
+ for (const name of new Set([...files.map((f) => f.name), ...imports.map((i) => i.name)])) {
+ const watchPath = FileWatchers.getWatchPath(root, join(dirname(path), name));
177
let prevState = await maybeStat(watchPath);
178
let watcher;
179
try {
0 commit comments