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

Unified Diff: lib/src/codegen/html_codegen.dart

Issue 968273002: Fixing layout in js output (use full paths rather than just the library name) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: address review comments 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 | « lib/devc.dart ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/html_codegen.dart
diff --git a/lib/src/codegen/html_codegen.dart b/lib/src/codegen/html_codegen.dart
index a148256ab5b4bf981993bd0084c8633aaf0fe4f1..f080611a96b823012e2e9793a5b1c069e4004276 100644
--- a/lib/src/codegen/html_codegen.dart
+++ b/lib/src/codegen/html_codegen.dart
@@ -43,9 +43,10 @@ void generateEntryHtml(String inputFile, CompilerOptions options,
.dirname(path.relative(Platform.script.path, from: options.outputDir)));
var fragment = _loadRuntimeScripts(path.join(pathToDdc, 'lib'));
if (!options.checkSdk) fragment.nodes.add(_miniMockSdk);
+ var root = new Uri.file(path.absolute(inputFile));
for (var lib in results.libraries) {
if (lib.isEntry) mainLibraryName = jsLibraryName(lib.library);
- fragment.nodes.add(_libraryInclude(jsOutputPath(lib)));
+ fragment.nodes.add(_libraryInclude(jsOutputPath(lib, root)));
}
fragment.nodes.add(_invokeMain(mainLibraryName));
mainScript.replaceWith(fragment);
« no previous file with comments | « lib/devc.dart ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698