mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
web bundler improvements part 1
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user