dart2js needs to serialize and deserialize all its logic internally, and needs to do so in an incremental / separate compilation manner.
package:record_use is a format meant to be used for when all information is known and meant to be used as a whole, not in parts (don't serialize a single const that has a index to another const in some index).
So, we'll need to refactor the dart2js implementation to only convert to record_use types before writing the file instead of in the internals.
Context: