web bundler improvements part 1

This commit is contained in:
Brian Madison
2025-11-05 23:54:04 -06:00
parent 80a04bfce3
commit 8ed4a548ea
40 changed files with 5438 additions and 36 deletions

View File

@@ -1005,9 +1005,12 @@ class WebBundler {
processed.add(bundleFilePath);
// Read the file content
const fileContent = await fs.readFile(bundleActualPath, 'utf8');
let fileContent = await fs.readFile(bundleActualPath, 'utf8');
const fileExt = path.extname(bundleActualPath).toLowerCase().replace('.', '');
// Process {project-root} references before wrapping
fileContent = this.processProjectRootReferences(fileContent);
// Wrap in XML with proper escaping
const wrappedContent = this.wrapContentInXml(fileContent, bundleFilePath, fileExt);
dependencies.set(bundleFilePath, wrappedContent);