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

Unified Diff: pkg/polymer/lib/src/build/polyfill_injector.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/lib/src/build/common.dart ('k') | pkg/polymer/lib/transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/src/build/polyfill_injector.dart
diff --git a/pkg/polymer/lib/src/build/polyfill_injector.dart b/pkg/polymer/lib/src/build/polyfill_injector.dart
index e416352be8fae90ae9c9bbff631c48756d31e588..2001facd9eeee480d6ef7e44f2d9cc5cd27d2082 100644
--- a/pkg/polymer/lib/src/build/polyfill_injector.dart
+++ b/pkg/polymer/lib/src/build/polyfill_injector.dart
@@ -100,7 +100,9 @@ class PolyfillInjector extends Transformer with PolymerTransformer {
var suffix = options.releaseMode ? '.js' : '.concat.js';
if (!dartSupportFound) _addScriptFirst('web_components/dart_support.js');
// platform.js should come before all other scripts.
- if (!platformJsFound) _addScriptFirst('web_components/platform$suffix');
+ if (!platformJsFound && options.injectPlatformJs) {
+ _addScriptFirst('web_components/platform$suffix');
+ }
transform.addOutput(
new Asset.fromString(transform.primaryInput.id, document.outerHtml));
« no previous file with comments | « pkg/polymer/lib/src/build/common.dart ('k') | pkg/polymer/lib/transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698