Let's say I have this code in template
// {# comment #}
console.log(name);
Which correctly compiles to
But if I enable precompilation of Lua byte code (content_by_lua_file) it compiles to
As you can see bottom line pops up to comment line and this breaks JavaScript code.
As far as I know it happens if you have newline character after comment block without any other characters.
Precompilation: https://blog.openresty.com/en/luajit-bytecode/
Let's say I have this code in template
Which correctly compiles to
But if I enable precompilation of Lua byte code (content_by_lua_file) it compiles to
As you can see bottom line pops up to comment line and this breaks JavaScript code.
As far as I know it happens if you have newline character after comment block without any other characters.
Precompilation: https://blog.openresty.com/en/luajit-bytecode/