diff --git a/src/loader/index.ts b/src/loader/index.ts index 0937856..91cb7f5 100644 --- a/src/loader/index.ts +++ b/src/loader/index.ts @@ -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); } }