Quick Node.js tool fix

This commit is contained in:
Joshua Granick
2018-02-23 15:10:15 -08:00
parent 7516fbce3e
commit a26e50705c

View File

@@ -214,9 +214,11 @@ class HTML5Helper {
if (FileSystem.exists (tempFile + ".map")) { if (FileSystem.exists (tempFile + ".map")) {
// closure does not include a sourceMappingURL in the created .js, we do it here // closure does not include a sourceMappingURL in the created .js, we do it here
#if !nodejs
var f = File.append (tempFile); var f = File.append (tempFile);
f.writeString ("//# sourceMappingURL=" + Path.withoutDirectory (sourceFile) + ".map"); f.writeString ("//# sourceMappingURL=" + Path.withoutDirectory (sourceFile) + ".map");
f.close (); f.close ();
#end
File.copy (tempFile + ".map", sourceFile + ".map"); File.copy (tempFile + ".map", sourceFile + ".map");
FileSystem.deleteFile (tempFile + ".map"); FileSystem.deleteFile (tempFile + ".map");