Skip to content

Commit

Permalink
fix: regression in watch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Aug 6, 2020
1 parent bb579e4 commit 8ca2ee1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/loader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ export default function(source: string): void {

function getMissingDepRequire(resource: string, meta): string | false {
const missingDeps = [];
for (const { basename, has } of WATCH_MISSING_FILES) {
if (!has(meta)) {
missingDeps.push(basename);
for (const watchFile of WATCH_MISSING_FILES) {
if (!watchFile.has(meta)) {
missingDeps.push(watchFile.basename);
}
}

Expand Down

0 comments on commit 8ca2ee1

Please sign in to comment.