This could (should?) be moved to `make.js`: see `BundleNode#getLevels()`