OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * Final phase of the polymer transformation: includes any additional polyfills | 6 * Final phase of the polymer transformation: includes any additional polyfills |
7 * that may needed by the deployed app. | 7 * that may needed by the deployed app. |
8 */ | 8 */ |
9 library polymer.src.transform.polyfill_injector; | 9 library polymer.src.build.polyfill_injector; |
10 | 10 |
11 import 'dart:async'; | 11 import 'dart:async'; |
12 | 12 |
13 import 'package:barback/barback.dart'; | 13 import 'package:barback/barback.dart'; |
14 import 'package:html5lib/dom.dart' show Document, Node, DocumentFragment; | 14 import 'package:html5lib/dom.dart' show Document, Node, DocumentFragment; |
15 import 'package:html5lib/parser.dart' show parseFragment; | 15 import 'package:html5lib/parser.dart' show parseFragment; |
16 import 'common.dart'; | 16 import 'common.dart'; |
17 | 17 |
18 /** | 18 /** |
19 * Ensures that any scripts and polyfills needed to run a polymer application | 19 * Ensures that any scripts and polyfills needed to run a polymer application |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 '<script src="packages/shadow_dom/shadow_dom.debug.js"></script>\n')
); | 81 '<script src="packages/shadow_dom/shadow_dom.debug.js"></script>\n')
); |
82 } | 82 } |
83 | 83 |
84 transform.addOutput( | 84 transform.addOutput( |
85 new Asset.fromString(transform.primaryInput.id, document.outerHtml)); | 85 new Asset.fromString(transform.primaryInput.id, document.outerHtml)); |
86 }); | 86 }); |
87 } | 87 } |
88 } | 88 } |
89 | 89 |
90 final _shadowDomJS = new RegExp(r'shadow_dom\..*\.js', caseSensitive: false); | 90 final _shadowDomJS = new RegExp(r'shadow_dom\..*\.js', caseSensitive: false); |
OLD | NEW |