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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user