From 914e94f9e5531465fdf6028734fb99402fae3411 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Fri, 29 Mar 2019 15:58:03 -0700 Subject: [PATCH] Fix line numbers for HTML5 source maps --- templates/html5/output.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/templates/html5/output.js b/templates/html5/output.js index 96da95a74..dce469aff 100644 --- a/templates/html5/output.js +++ b/templates/html5/output.js @@ -1,13 +1,8 @@ -::if embeddedLibraries::::foreach (embeddedLibraries):: -::__current__::::end::::end:: -// lime.embed namespace wrapper +var $hx_script = (function(exports, global) { ::SOURCE_FILE::}); (function ($hx_exports, $global) { "use strict"; $hx_exports.lime = $hx_exports.lime || {}; $hx_exports.lime.$scripts = $hx_exports.lime.$scripts || {}; -$hx_exports.lime.$scripts["::APP_FILE::"] = (function(exports, global) { -::SOURCE_FILE:: -}); -// End namespace wrapper +$hx_exports.lime.$scripts["::APP_FILE::"] = $hx_script; $hx_exports.lime.embed = function(projectName) { var exports = {}; $hx_exports.lime.$scripts[projectName](exports, $global); for (var key in exports) $hx_exports[key] = $hx_exports[key] || exports[key]; @@ -15,3 +10,5 @@ $hx_exports.lime.embed = function(projectName) { var exports = {}; return exports; }; })(typeof exports != "undefined" ? exports : typeof window != "undefined" ? window : typeof self != "undefined" ? self : this, typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : this); +::if embeddedLibraries::::foreach (embeddedLibraries)::::__current__:: +::end::::end:: \ No newline at end of file