From 744d3d903990e722076f3ee013f8e5e527c664b4 Mon Sep 17 00:00:00 2001 From: Kostas Chatzikokolakis Date: Thu, 22 Feb 2018 19:24:54 +0100 Subject: [PATCH] Closure: always create a source map if we have a haxe-generated .js.map --- lime/tools/helpers/HTML5Helper.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lime/tools/helpers/HTML5Helper.hx b/lime/tools/helpers/HTML5Helper.hx index b29c3af4c..d57c34d95 100644 --- a/lime/tools/helpers/HTML5Helper.hx +++ b/lime/tools/helpers/HTML5Helper.hx @@ -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 (tempFile + ".map"); @@ -213,7 +213,7 @@ class HTML5Helper { ProcessHelper.runCommand ("", "java", args); - if (project.debug || project.targetFlags.exists ("source-map")) { + if (FileSystem.exists (tempFile + ".map")) { File.copy (tempFile + ".map", sourceFile + ".map"); FileSystem.deleteFile (tempFile + ".map");