Skip to content

Commit

Permalink
Ignore module dependencies that don't have an associated resource
Browse files Browse the repository at this point in the history
  • Loading branch information
aackerman committed Apr 13, 2018
1 parent f7affb0 commit eb12112
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ class CircularDependencyPlugin {
for (let dependency of currentModule.dependencies) {
let depModule = dependency.module
if (!depModule) { continue }
// ignore dependencies that don't have an associated resource
if (!depModule.resource) { continue }

if (depModule.debugId in seenModules) {
if (depModule.debugId === initialModule.debugId) {
Expand Down

0 comments on commit eb12112

Please sign in to comment.