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