Closure: always create a source map if we have a haxe-generated .js.map

This commit is contained in:
Kostas Chatzikokolakis
2018-02-22 19:24:54 +01:00
committed by Joshua Granick
parent e6548ffc30
commit 744d3d9039

View File

@@ -191,7 +191,7 @@ class HTML5Helper {
} }
if (project.debug || project.targetFlags.exists ("source-map")) { if (FileSystem.exists (sourceFile + ".map") || project.targetFlags.exists ("source-map")) {
args.push ("--create_source_map"); args.push ("--create_source_map");
args.push (tempFile + ".map"); args.push (tempFile + ".map");
@@ -213,7 +213,7 @@ class HTML5Helper {
ProcessHelper.runCommand ("", "java", args); ProcessHelper.runCommand ("", "java", args);
if (project.debug || project.targetFlags.exists ("source-map")) { if (FileSystem.exists (tempFile + ".map")) {
File.copy (tempFile + ".map", sourceFile + ".map"); File.copy (tempFile + ".map", sourceFile + ".map");
FileSystem.deleteFile (tempFile + ".map"); FileSystem.deleteFile (tempFile + ".map");