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

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

Issue 1530133003: Support source maps in server mode (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 4 years, 11 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/runtime/dart/html.js ('k') | lib/src/codegen/js_printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_codegen.dart
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart
index 906251a38de95d6f5ee7fc419a12147f86a51f7b..a411957c9e51b597054c81dfdf3a415c5cd7dc35 100644
--- a/lib/src/codegen/js_codegen.dart
+++ b/lib/src/codegen/js_codegen.dart
@@ -3588,7 +3588,11 @@ class JSGenerator extends CodeGenerator {
new JSCodegenVisitor(compiler, rules, library, _extensionTypes, fields);
var module = codegen.emitLibrary(unit);
var out = compiler.getOutputPath(library.source.uri);
- return writeJsLibrary(module, out,
+ var flags = compiler.options;
+ var serverUri = flags.serverMode
+ ? Uri.parse('http://${flags.host}:${flags.port}/')
+ : null;
+ return writeJsLibrary(module, out, compiler.inputBaseDir, serverUri,
emitSourceMaps: options.emitSourceMaps,
arrowFnBindThisWorkaround: options.arrowFnBindThisWorkaround);
}
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/src/codegen/js_printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698