Loretta icon indicating copy to clipboard operation
Loretta copied to clipboard

minifier issue

Open liverfail opened this issue 1 month ago • 0 comments

What is the issue you are experiencing?

ok so basically if i do

local print = print pcall(print,'hello world')

and i minify this it becomes like local a = print;pcall(print,'hello world')

instead of local print=print;pcall(print,'hello world') or local a=print;pcall(a,'hello world')

as it would with any other minifier please fix this thanks

What was the expected result?

local print=print;pcall(print,'hello world') or local a=print;pcall(a,'hello world')

What was the actual result?

local a = print;pcall(print,'hello world')

What are the steps to reproduce this issue?

i think i explained it well enough

What version of Loretta are you experiencing this issue in?

0.2.13

What Lua versions are affected by this issue?

prob all of them

Is there any additional information you wish to add?

No response

Please ensure you have done the following actions:

  • [x] I have checked that there are no similar issues already open.
  • [x] I confirm this is not an usage question but an actual bug within Loretta.
  • [x] I have confirmed that this issue still happens on the latest nightly version.
  • [x] I have confirmed that this issue is because of Loretta and not because of my own code.
  • [x] I acknowledge my issue will be closed if any step has been skipped.

liverfail avatar Nov 07 '25 21:11 liverfail