metaowl 0.3.2 → 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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/vite/plugin.js +2 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metaowl",
3
- "version": "0.3.2",
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",
@@ -31,7 +31,7 @@
31
31
  "type": "git",
32
32
  "url": "https://github.com/dennisschott/metaowl"
33
33
  },
34
- "homepage": "https://github.com/dennisschott/metaowl#readme",
34
+ "homepage": "https://metaowl.org",
35
35
  "bugs": {
36
36
  "url": "https://github.com/dennisschott/metaowl/issues"
37
37
  },
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
- * The result is minified to reduce file size.
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
- // Minify: remove unnecessary whitespace while keeping valid XML structure
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
  /**