only output `define()` for each top-level spec, not for child specs. output dependencies for child specs and all modules of the child specs in a top-level spec/define
merge upstream