Temporarily disable jqhtml caching + fix sourcemap paths
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -94,8 +94,13 @@ class Jqhtml_Integration {
|
|||||||
//
|
//
|
||||||
// scope_key() changes when: app code changes, user logs out, site changes.
|
// scope_key() changes when: app code changes, user logs out, site changes.
|
||||||
// This automatically invalidates cached component renders.
|
// 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;
|
window.jqhtml.debug.verbose = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,10 +76,13 @@ function compileFile(filePath, options = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const source = fs.readFileSync(inputPath, 'utf-8');
|
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
|
// Compile using @jqhtml/parser API
|
||||||
const compiled = compileTemplate(source, filename, {
|
const compiled = compileTemplate(source, relativePath, {
|
||||||
format: options.format || 'iife',
|
format: options.format || 'iife',
|
||||||
sourcemap: options.sourcemap !== false,
|
sourcemap: options.sourcemap !== false,
|
||||||
version: VERSION
|
version: VERSION
|
||||||
|
|||||||
Reference in New Issue
Block a user