lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, list!

We use Squish[1] as a tool to pack and minify a bunch of Lua source code files.

It works nicely, but error messages and stack traces are, obviously, a
bit hard to comprehend.

Did anyone implement something akin to JavaScript source maps[2] for
Squish (preferably supporting mapping line numbers as well)?

I guess it would require some changes to how minified code is
generated — to place each function call on a separate line, but it
should not affect resulting code size.

Best,
Alexander.

[1] — http://matthewwild.co.uk/projects/squish/home
[2] — https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#source-maps