Skip to content

Commit 73f72d2

Browse files
author
Serhii Pashchenko
committed
Fix unresolved modules in config watcher
1 parent b20589c commit 73f72d2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/lib/getModuleDependencies.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ export default function getModuleDependencies(entryFile) {
1818
// ones are being added
1919
for (const mdl of modules) {
2020
mdl.requires.forEach(dep => {
21-
const basedir = path.dirname(mdl.file)
22-
const depPath = resolve.sync(dep, { basedir })
23-
const depModule = createModule(depPath)
21+
try {
22+
const basedir = path.dirname(mdl.file)
23+
const depPath = resolve.sync(dep, { basedir })
24+
const depModule = createModule(depPath)
2425

25-
modules.push(depModule)
26+
modules.push(depModule)
27+
} catch (_err) {}
2628
})
2729
}
2830

0 commit comments

Comments
 (0)