If a package "foo" uses a transformer from package "bar" and restricts that transformer to only run on files in "test", "bar"'s transformer won't be loaded at all. This is due to a flaw in Pub's logic for determining necessary transformers: because "bar" only runs on non-public file and isn't from the root package, pub assumes that it's not necessary. Instead, pub should check whether it's used in the root package.
This is a serious issue for the test runner: it needs to expose a transformer for its users to use, but that transformer will only be run on tests.
The text was updated successfully, but these errors were encountered:
If a package "foo" uses a transformer from package "bar" and restricts that transformer to only run on files in "test", "bar"'s transformer won't be loaded at all. This is due to a flaw in Pub's logic for determining necessary transformers: because "bar" only runs on non-public file and isn't from the root package, pub assumes that it's not necessary. Instead, pub should check whether it's used in the root package.
This is a serious issue for the test runner: it needs to expose a transformer for its users to use, but that transformer will only be run on tests.
The text was updated successfully, but these errors were encountered: