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

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

Issue 589563002: Add support for not including platform.js in build output (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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/CHANGELOG.md ('k') | pkg/polymer/lib/src/build/polyfill_injector.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/common.dart
diff --git a/pkg/polymer/lib/src/build/common.dart b/pkg/polymer/lib/src/build/common.dart
index d75c58561b114e1506af4b158de2aede48e3c064..8ef384c70b70341c65f3dd73383e98c659c250bb 100644
--- a/pkg/polymer/lib/src/build/common.dart
+++ b/pkg/polymer/lib/src/build/common.dart
@@ -93,10 +93,14 @@ class TransformOptions {
// reachable (entry point+imported) html if deploying. See dartbug.com/17199.
final bool lint;
+ /// This will automatically inject `platform.js` from the `web_components`
+ /// package in all entry points, if it is not already included.
+ final bool injectPlatformJs;
+
TransformOptions({entryPoints, this.inlineStylesheets,
this.contentSecurityPolicy: false, this.directlyIncludeJS: true,
this.releaseMode: true, this.lint: true,
- this.injectBuildLogsInOutput: false})
+ this.injectBuildLogsInOutput: false, this.injectPlatformJs: true})
: entryPoints = entryPoints == null ? null
: entryPoints.map(systemToAssetPath).toList();
« no previous file with comments | « pkg/polymer/CHANGELOG.md ('k') | pkg/polymer/lib/src/build/polyfill_injector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698