narrow-pizza-69955
07/09/2025, 12:37 PMsource attribute to detect and evaluate modules directly inside loadModules(). The idea is to eagerly evaluate modules only when all of their attributes (including custom inputs) are fully resolvable. I also made sure to skip modules using count or for_each, even if their values are known — so that expansion still happens correctly.
This avoids duplication (like module.x and module.x[0]) and ensures dependent modules like module.with_output are evaluated early enough to support things like count = module.with_output.count.
LMK about your thoughts.