| Index: pkg/polymer/lib/polymer.dart
|
| diff --git a/pkg/polymer/lib/polymer.dart b/pkg/polymer/lib/polymer.dart
|
| index 246b411122ea0029b379ba888f3d1316e2fd7a39..db7eb557e67d793d0dc6293d4c9b7372dbe540d0 100644
|
| --- a/pkg/polymer/lib/polymer.dart
|
| +++ b/pkg/polymer/lib/polymer.dart
|
| @@ -49,12 +49,24 @@ import 'dart:html';
|
| import 'dart:js' as js show context;
|
| import 'dart:js' hide context;
|
|
|
| +// *** Important Note ***
|
| +// This import is automatically replaced when calling pub build by the
|
| +// mirrors_remover transformer. The transformer will remove any dependencies on
|
| +// dart:mirrors in deployed polymer apps. This and the import to
|
| +// mirror_loader.dart below should be updated in sync with changed in
|
| +// lib/src/build/mirrors_remover.dart.
|
| +//
|
| +// Technically, if we have codegen for expressions we shouldn't need any
|
| +// @MirrorsUsed (since this is for development only), but our test bots don't
|
| +// run pub-build yet. Until then, polymer might be tested with mirror_loader
|
| +// instead of the static_loader, however the actual code there is practically
|
| +// dead ([initializers] will be set programatically with generated code
|
| +// anyways), but the @MirrorsUsed helps reduce the load on our bots.
|
| @MirrorsUsed(metaTargets:
|
| - const [Reflectable, ObservableProperty, PublishedProperty, CustomTag,
|
| - _InitMethodAnnotation],
|
| + const [Reflectable, ObservableProperty, PublishedProperty, CustomTag],
|
| targets: const [PublishedProperty],
|
| - override: const ['smoke.mirrors', 'polymer'])
|
| -import 'dart:mirrors';
|
| + override: const ['smoke.mirrors'])
|
| +import 'dart:mirrors' show MirrorsUsed; // ** see important note above
|
|
|
| import 'package:logging/logging.dart' show Logger, Level;
|
| import 'package:observe/observe.dart';
|
| @@ -68,6 +80,7 @@ import 'package:template_binding/template_binding.dart';
|
| import 'package:web_components/polyfill.dart' show customElementsReady;
|
|
|
| import 'deserialize.dart' as deserialize;
|
| +import 'src/mirror_loader.dart' as loader; // ** see important note above
|
|
|
| export 'package:observe/observe.dart';
|
| export 'package:observe/html.dart';
|
|
|