Skip to content

Commit 0efc7f4

Browse files
committed
Explicitly note that data at the top of the template is bundled
1 parent f838466 commit 0efc7f4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lune/lib/BundleModel.luau

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ local StringUtils = LuneUtils.StringUtils
1010

1111
local LuaEncode = require("libraries/LuaEncode")
1212

13+
local Version = require("data/Version")
14+
1315
-- Init script template for codegen (in this, we'll maintain 5.1 *syntax* compat
1416
-- for optional compilation to vanilla Lua 5.1x bytecode format)
1517
local InitScriptTemplate = require("data/Template")
1618

17-
local Version = require("data/Version")
18-
1919
local ClassNameIdKeys = {
2020
Folder = 1,
2121
ModuleScript = 2,
@@ -179,7 +179,7 @@ local function BundleModel(modelData: string | {roblox.Instance}, envName: strin
179179
local LineOffsets = {}
180180
if LineDebugging then
181181
-- Starts at line 6, where the first closure func start should be
182-
local CurrentLineOffset = ExtraLinesToOffset + 6
182+
local CurrentLineOffset = ExtraLinesToOffset + 8
183183

184184
for RefId, LineCount in ClosureSourceLineCounts do
185185
LineOffsets[RefId] = CurrentLineOffset

lune/lib/data/Template.luau

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
-- With that being said, this explains the weird cflow in some parts
33

44
return [[
5+
-- ++++++++ WAX BUNDLED DATA BELOW ++++++++ --
6+
57
-- Will be used later for getting flattened globals
68
local ImportGlobals
79

0 commit comments

Comments
 (0)