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

Unified Diff: pkg/polymer/lib/src/build/messages.dart

Issue 644163002: Splitting interop support so `dart_support.js` is no longer required. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
« no previous file with comments | « pkg/polymer/lib/src/build/linter.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/messages.dart
diff --git a/pkg/polymer/lib/src/build/messages.dart b/pkg/polymer/lib/src/build/messages.dart
index 955ebeb6c54dd9c398e1f6ef4119387d07a161e2..c4cc934cb71114d682e1d811882cfc55a3beb403 100644
--- a/pkg/polymer/lib/src/build/messages.dart
+++ b/pkg/polymer/lib/src/build/messages.dart
@@ -558,3 +558,25 @@ If you would like to hide this warning and keep it inlined, do the same thing
but assign the value to true.
'''
);
+
+const DART_SUPPORT_NO_LONGER_REQUIRED = const MessageTemplate(
+ const MessageId('polymer', 43),
+ 'No need to include "dart_support.js" by hand anymore.',
+ '"dart_support.js" not necessary',
+ '''
+The script `packages/web_components/dart_support.js` is still used, but you no
+longer need to put it in your application's entrypoint.
+
+In the past this file served two purposes:
+
+ * to make dart2js work well with the platform polyfills, and
+ * to support registering Dart APIs for JavaScript custom elements.
+
+Now, the code from `dart_support.js` is split in two halves. The half for
+dart2js is now injected by the polymer transformers automatically during `pub
+build`. The `web_components` package provides an HTML file containing the other
+half. Developers of packages that wrap JavaScript custom elements (like
+`core_elements` and `paper_elements`) will import that file directly, so
+application developers don't have to worry about it anymore.
+'''
+);
« no previous file with comments | « pkg/polymer/lib/src/build/linter.dart ('k') | pkg/polymer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698