Skip to content

Commit

Permalink
keep package.lua don't compile and strip
Browse files Browse the repository at this point in the history
package.lua as metatadata in luvit world
  • Loading branch information
zhaozg committed May 11, 2023
1 parent 51f5dce commit bf8f45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/luvibundle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ local function buildBundle(options, bundle)
elseif stat.type == "file" then
print(" " .. child)
local ctx = bundle.readfile(child)
if strip and child:sub(-4, -1)=='.lua' then
if strip and name ~= "package.lua" and child:sub(-4, -1)=='.lua' then
ctx = assert(load(ctx, child))
ctx = string.dump(ctx, strip)
end
Expand Down

0 comments on commit bf8f45d

Please # to comment.