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

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

Issue 59073003: Version 0.8.10.4 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/pkg/polymer/lib/src/build/linter.dart ('k') | dart/pkg/polymer/test/build/all_phases_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/polymer/lib/src/build/script_compactor.dart
===================================================================
--- dart/pkg/polymer/lib/src/build/script_compactor.dart (revision 29808)
+++ dart/pkg/polymer/lib/src/build/script_compactor.dart (working copy)
@@ -81,10 +81,7 @@
mainScriptTag.attributes['src'] =
path.url.basename(bootstrapId.path);
- // TODO(sigmund): stop renaming the file (see dartbug.com/14554)
- var modifiedMainId = mainLibraryId.addExtension('_modified.dart');
-
- libraries.add(modifiedMainId);
+ libraries.add(mainLibraryId);
var urls = libraries.map((id) => assetUrlFor(id, bootstrapId, logger))
.where((url) => url != null).toList();
var buffer = new StringBuffer()..writeln(MAIN_HEADER);
@@ -98,17 +95,12 @@
..writeln(' configureForDeployment([')
..writeAll(urls.map((url) => " '$url',\n"))
..writeln(' ]);')
- ..writeln(' i${i - 1}.polymerMainWrapper();')
+ ..writeln(' i${i - 1}.main();')
..writeln('}');
transform.addOutput(new Asset.fromString(
bootstrapId, buffer.toString()));
transform.addOutput(new Asset.fromString(id, document.outerHtml));
-
- return transform.readInputAsString(mainLibraryId).then((contents) {
- transform.addOutput(new Asset.fromString(modifiedMainId,
- '$contents\n\npolymerMainWrapper() => main();\n'));
- });
});
});
}
« no previous file with comments | « dart/pkg/polymer/lib/src/build/linter.dart ('k') | dart/pkg/polymer/test/build/all_phases_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698