Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cmd/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,6 @@ export default async function run(
if (noReload) {
log.info('Automatic extension reloading has been disabled');
} else {
log.info('The extension will reload if any source file changes');

reloadStrategy({
extensionRunner,
sourceDir,
Expand All @@ -217,6 +215,8 @@ export default async function run(
ignoreFiles,
noInput,
});

log.info('The extension will reload if any source file changes');
}

return extensionRunner;
Expand Down
4 changes: 3 additions & 1 deletion src/watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ export default function onSourceChange({
files: watchedFiles,
directories: watchedDirs,
missing: [],
startTime: Date.now(),
// startTime: Date.now(), is explicitly NOT set because it causes onChange
// to be emitted if the files were created shortly before now!
// See https://github.com/webpack/watchpack/issues/295
});

// TODO: support interrupting the watcher on Windows.
Expand Down