Add SPA session validation and buglist, update migration docs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-03 21:28:08 +00:00
parent 9be3dfc14e
commit cff287e870
24169 changed files with 10223 additions and 7120 deletions

View File

@@ -102,14 +102,19 @@ class JqhtmlWebpackCompiler
// Compile via RPC server
$compiled_js = static::_compile_via_rpc($file_path);
// Don't add any comments - they break sourcemap line offsets
// Just use the compiler output as-is
// Extract template variable name and append registration call
// CRITICAL: Do NOT add extra newlines - they break sourcemap line offsets
// The registration is appended AFTER the sourcemap comment so it doesn't affect mappings
if (preg_match('/var\s+(template_\w+)\s*=/', $compiled_js, $matches)) {
$template_var = $matches[1];
// Append registration on same line as end of sourcemap (no extra newlines)
$compiled_js = rtrim($compiled_js) . "\njqhtml.register_template({$template_var});";
}
$wrapped_js = $compiled_js;
// Ensure proper newline at end
if (!str_ends_with($wrapped_js, "\n")) {
$wrapped_js .= "\n";
}
// Ensure exactly one newline at end (no extra)
$wrapped_js = rtrim($wrapped_js) . "\n";
// Cache the compiled result
file_put_contents($cache_file, $wrapped_js);