Open
Description
It appears like there's a recursion bug in the builder.
Let's say you have the following modules:
app (current directory)
module2
moduleExample
...
the app
component would require (as a dependency - local, that is) module2
and module2
would require moduleExample
. moduleExample
would then require the app
component. This creates a RangeError: Maximum call stack size exceeded
error which unfriendly.
I guess this would be a circular dependency. A solution (runtime isn't the issue, I have that sorted out, it's just compilation that needs to work) would be to skip an already processed component. So when app
is processed the second time you can skip it.
Thoughts? (I can submit a PR if you'd like)