metaowl 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vite/plugin.js +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "metaowl",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Lightweight meta-framework for Odoo OWL — file-based routing, app mounting, Fetch helper, Cache, Meta tags, SSG generator, and a Vite plugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
package/vite/plugin.js
CHANGED
|
@@ -28,7 +28,7 @@ function collectXml(globPattern) {
|
|
|
28
28
|
/**
|
|
29
29
|
* Merge all XML template files into a single XML string.
|
|
30
30
|
* Removes <templates> wrappers from individual files and wraps everything in a single <templates>.
|
|
31
|
-
*
|
|
31
|
+
* Templates are concatenated without minification to preserve intentional line breaks.
|
|
32
32
|
*
|
|
33
33
|
* @param {string[]} xmlPaths - Array of absolute file paths to XML files
|
|
34
34
|
* @returns {string} Merged XML string
|
|
@@ -46,10 +46,7 @@ function mergeXmlFiles(xmlPaths) {
|
|
|
46
46
|
}
|
|
47
47
|
}).join('')
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
const minified = '<templates>' + templates.replace(/\s+/g, ' ').replace(/>\s+</g, '><').trim() + '</templates>'
|
|
51
|
-
|
|
52
|
-
return minified
|
|
49
|
+
return '<templates>' + templates + '</templates>'
|
|
53
50
|
}
|
|
54
51
|
|
|
55
52
|
/**
|