Index: pkg/dev_compiler/web/web_command.dart |
diff --git a/pkg/dev_compiler/web/web_command.dart b/pkg/dev_compiler/web/web_command.dart |
index 68b216a7ddb01eb71f9c96ac9432e6d73ec33653..bc4c1ad3d2dddeb1a9a38d682b8da0e3c18fd0a6 100644 |
--- a/pkg/dev_compiler/web/web_command.dart |
+++ b/pkg/dev_compiler/web/web_command.dart |
@@ -197,11 +197,13 @@ class WebCompileCommand extends Command { |
JSModuleFile module = compiler.compile(unit, compilerOptions); |
- var moduleCode = module.isValid |
- ? module |
- .getCode(ModuleFormat.legacy, true, unit.name, unit.name + '.map') |
- .code |
- : ''; |
+ var moduleCode = ''; |
+ if (module.isValid) { |
+ moduleCode = module |
+ .getCode(ModuleFormat.legacy, unit.name, unit.name + '.map', |
+ singleOutFile: true) |
+ .code; |
+ } |
return new CompileResult( |
code: moduleCode, isValid: module.isValid, errors: module.errors); |