From 46f147e427ef8507713e671d0e1e00de020a4615 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Dec 2025 05:52:00 +0000 Subject: [PATCH] Temporarily disable jqhtml caching + fix sourcemap paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/RSpade/Integrations/Jqhtml/Jqhtml_Integration.js | 7 ++++++- .../Integrations/Jqhtml/resource/jqhtml-compile-server.js | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/RSpade/Integrations/Jqhtml/Jqhtml_Integration.js b/app/RSpade/Integrations/Jqhtml/Jqhtml_Integration.js index 63c3da3c3..e9a9b6b53 100755 --- a/app/RSpade/Integrations/Jqhtml/Jqhtml_Integration.js +++ b/app/RSpade/Integrations/Jqhtml/Jqhtml_Integration.js @@ -94,8 +94,13 @@ class Jqhtml_Integration { // // scope_key() changes when: app code changes, user logs out, site changes. // This automatically invalidates cached component renders. + // + // TEMPORARILY DISABLED: jqhtml caching is temporarily disabled for a client + // demo while we figure out why it's not serializing Rsx_Js_Model classes + // correctly. We likely want to add a serialize and unserialize callback to + // jqhtml to help make the integration between jqhtml and rspade tighter. // ───────────────────────────────────────────────────────────────────── - jqhtml.set_cache_key(Rsx.scope_key()); + // jqhtml.set_cache_key(Rsx.scope_key()); window.jqhtml.debug.verbose = false; } diff --git a/app/RSpade/Integrations/Jqhtml/resource/jqhtml-compile-server.js b/app/RSpade/Integrations/Jqhtml/resource/jqhtml-compile-server.js index 5eb102e49..eed0037d5 100755 --- a/app/RSpade/Integrations/Jqhtml/resource/jqhtml-compile-server.js +++ b/app/RSpade/Integrations/Jqhtml/resource/jqhtml-compile-server.js @@ -76,10 +76,13 @@ function compileFile(filePath, options = {}) { } const source = fs.readFileSync(inputPath, 'utf-8'); - const filename = path.basename(inputPath); + + // Use relative path for sourcemap sources (not just basename) + // This allows browser devtools to show proper file paths + const relativePath = path.relative(process.cwd(), inputPath); // Compile using @jqhtml/parser API - const compiled = compileTemplate(source, filename, { + const compiled = compileTemplate(source, relativePath, { format: options.format || 'iife', sourcemap: options.sourcemap !== false, version: VERSION