From a26e50705c612bbaa79c4b9b8285e4e91e3bcbd2 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 23 Feb 2018 15:10:15 -0800 Subject: [PATCH] Quick Node.js tool fix --- lime/tools/helpers/HTML5Helper.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lime/tools/helpers/HTML5Helper.hx b/lime/tools/helpers/HTML5Helper.hx index 69970af2a..a3ddfb697 100644 --- a/lime/tools/helpers/HTML5Helper.hx +++ b/lime/tools/helpers/HTML5Helper.hx @@ -214,9 +214,11 @@ class HTML5Helper { if (FileSystem.exists (tempFile + ".map")) { // closure does not include a sourceMappingURL in the created .js, we do it here + #if !nodejs var f = File.append (tempFile); f.writeString ("//# sourceMappingURL=" + Path.withoutDirectory (sourceFile) + ".map"); f.close (); + #end File.copy (tempFile + ".map", sourceFile + ".map"); FileSystem.deleteFile (tempFile + ".map");