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

Unified Diff: lib/build/script_compactor.dart

Issue 950883003: fix bug in scriptcompactors bootstrap and added transform function which can be used by other trans… (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: Created 5 years, 10 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 | « CHANGELOG.md ('k') | lib/build/web_components.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/build/script_compactor.dart
diff --git a/lib/build/script_compactor.dart b/lib/build/script_compactor.dart
index c1f7931f4c5183c088b6001fdffc861ae616385b..b3786f27b2d2bac9c96ecfde9f77e09c97cbd7d3 100644
--- a/lib/build/script_compactor.dart
+++ b/lib/build/script_compactor.dart
@@ -119,7 +119,7 @@ class ScriptCompactor {
var mainScriptPath = _importPath(mainScript, primaryInput);
buffer.writeln("import '$mainScriptPath' as i$i;");
buffer.writeln();
- buffer.writeln('void main() => i$i.main();');
+ buffer.writeln('void main() { i$i.main(); }');
Siggi Cherem (dart-lang) 2015/02/23 18:15:16 since this is not formatted automatically, maybe a
jakemac 2015/02/23 18:19:16 I am inclined to just leave it, this fits on one l
var bootstrap = new Asset.fromString(bootstrapId, '$buffer');
transform.addOutput(bootstrap);
« no previous file with comments | « CHANGELOG.md ('k') | lib/build/web_components.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698