Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: sdk/lib/_internal/pub/lib/src/pubspec.dart

Issue 133843006: Support configuring dart2js from the pubspec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code reivew Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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".');

Powered by Google App Engine
This is Rietveld 408576698