diff --git a/src/lua/luvibundle.lua b/src/lua/luvibundle.lua index 46ca9be8..fb13726c 100644 --- a/src/lua/luvibundle.lua +++ b/src/lua/luvibundle.lua @@ -195,10 +195,10 @@ local function buildBundle(options, bundle) if compile and isLua and name:lower() ~= 'package.lua' then local fn, err = load(ctx, child) - if not fn and not options.force then - error(err) - else + if fn then ctx = string.dump(fn, options.strip) + elseif not options.force then + error(err) end end