@sprlab/wccompiler 0.16.9 → 0.16.10

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/lib/sfc-parser.js CHANGED
@@ -90,6 +90,7 @@ function findBlocks(source, blockName) {
90
90
  }
91
91
 
92
92
  if (closeIdx === -1) continue;
93
+
93
94
  matches.push({
94
95
  content: source.slice(openEnd, closeIdx),
95
96
  attrs,
@@ -293,7 +294,9 @@ export function parseSFC(source, fileName = '<unknown>') {
293
294
  ...styleBlocks,
294
295
  ].sort((a, b) => a.start - b.start);
295
296
 
296
- validateNoUnexpectedContent(source, allRanges, fileName);
297
+ // Temporarily disable unexpected content validation due to issues with nested slot templates
298
+ // TODO: Fix validateNoUnexpectedContent to properly handle nested <template slot="name"> elements
299
+ // validateNoUnexpectedContent(source, allRanges, fileName);
297
300
 
298
301
  // Extract block contents
299
302
  const scriptContent = scriptBlocks[0].content;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprlab/wccompiler",
3
- "version": "0.16.9",
3
+ "version": "0.16.10",
4
4
  "description": "Zero-runtime compiler that transforms .wcc single-file components into native web components with signals-based reactivity",
5
5
  "type": "module",
6
6
  "exports": {