Index: sdk/lib/_internal/pub/lib/src/pubspec.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/pubspec.dart b/sdk/lib/_internal/pub/lib/src/pubspec.dart |
index c5c5c1aff278d5aa49304c78a559975442034eea..df9359a078c0bc5a8fb443a84b2bb2c599bc3d04 100644 |
--- a/sdk/lib/_internal/pub/lib/src/pubspec.dart |
+++ b/sdk/lib/_internal/pub/lib/src/pubspec.dart |
@@ -177,7 +177,7 @@ class Pubspec { |
"$field.$library", |
() => new TransformerId.parse(library, configuration)); |
- if (id.package != name && |
+ if (id.package != name && !id.isBuiltInTransformer && |
!dependencies.any((ref) => ref.name == id.package)) { |
_error('"$field.$library" refers to a package that\'s not listed in ' |
'"dependencies".'); |