Open mraleph opened 1 year ago
Also related to https://dart-review.googlesource.com/c/sdk/+/310772
Is there a reason to maintain protobuf_aware_treeshaker
? It's an outdated and untested wrapper over TFA and the same can done using gen_kernel
.
@alexmarkov I think we can remove the binary if we migrate internal users away from it.
Maybe we should take this up with the Dart/Flutter in google3 team to figure out if it is possible to remove this tool and replace with gen_kernel
Protobuf aware tree-shakingb binary ('pkg/vm/bin/protobuf_aware_treeshaker.dart') does the following:
However even if the library is empty that does not mean it can be safely dropped because there might be constants which refer to it, most specifically private symbols, so if you pass the following code through protobuf aware treeshaking
You get incorrect kernel out which contains a dangling reference to
lib.dart
library.