@sprlab/wccompiler 0.16.7 → 0.16.8

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
@@ -60,9 +60,11 @@ function findBlocks(source, blockName) {
60
60
  while ((m = openRe.exec(source)) !== null) {
61
61
  const attrs = m[1] || '';
62
62
 
63
- // For template blocks: skip <template #name> (slot content, not SFC block)
64
- if (blockName === 'template' && /#/.test(attrs)) {
65
- continue;
63
+ // For template blocks: skip <template #name> and <template slot="name"> (slot content, not SFC block)
64
+ if (blockName === 'template') {
65
+ if (/#/.test(attrs) || /\bslot\s*=/.test(attrs)) {
66
+ continue;
67
+ }
66
68
  }
67
69
 
68
70
  const openEnd = m.index + m[0].length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprlab/wccompiler",
3
- "version": "0.16.7",
3
+ "version": "0.16.8",
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": {