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

Unified Diff: lib/build/script_compactor.dart

Issue 1012143007: script compactor now names its bootstrap file based off the html entrypoint, not the dart file (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: Created 5 years, 9 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') | pubspec.yaml » ('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 b3786f27b2d2bac9c96ecfde9f77e09c97cbd7d3..3492160c496626ffcaf8fe57c0a693d8e683bc22 100644
--- a/lib/build/script_compactor.dart
+++ b/lib/build/script_compactor.dart
@@ -104,8 +104,8 @@ class ScriptCompactor {
/// Builds the bootstrap file and returns the path to it relative to
/// [primaryInput].
Asset _buildBootstrapFile(AssetId mainScript, Set<AssetId> importScripts) {
- var bootstrapId = new AssetId(mainScript.package,
- mainScript.path.replaceFirst('.dart', '.bootstrap.dart'));
+ var bootstrapId = new AssetId(primaryInput.package,
+ primaryInput.path.replaceFirst('.html', '.bootstrap.dart'));
var buffer = new StringBuffer();
buffer.writeln('library ${_libraryNameFor(bootstrapId)};');
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698