Closed as not planned
Description
Currently, the dependencies
is a list of dependencies for all assets together. (This was modeled after the Rust build.rs.) But in the context of hot-reload/hot-restart we might want to only rebuild some assets (#1207). So then we'd need to know the dependencies per asset.
Some open questions:
- What if multiple assets are produced by the same list of dependencies? Should we try to deduplicate such list of dependencies?
- We've been considering making
assetId
optional. E.g. an assetId would only be needed for things referenced from Dart code. And not for JARs for example. But we'll likely need some way to uniquely identify an asset.
Version skew:
- Older build.dart newer SDK: Deps added to the general config could be interpreted as deps of all assets.
- Newer build.dart older SDK: Output all deps combined.