| 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));
|
|
|