@esportsplus/template 0.32.4 → 0.32.5

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.
@@ -80,7 +80,7 @@ function generateTemplateCode(ctx, { html, slots }, exprTexts, exprNodes, isArro
80
80
  }
81
81
  }
82
82
  let name = uid('element'), suffix = path.slice(startIdx).join('.');
83
- declarations.push(`${name} = ${ancestorVar}.${suffix}`);
83
+ declarations.push(`${name} = ${ancestorVar}.${suffix}!`);
84
84
  nodes.set(key, name);
85
85
  }
86
86
  code.push(isArrowBody ? '{' : `(() => {`, `let ${declarations.join(',\n')};`);
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "type": "module",
42
42
  "types": "./build/index.d.ts",
43
- "version": "0.32.4",
43
+ "version": "0.32.5",
44
44
  "scripts": {
45
45
  "build": "tsc",
46
46
  "build:test": "vite build --config test/vite.config.ts",
@@ -174,7 +174,7 @@ function generateTemplateCode(
174
174
  let name = uid('element'),
175
175
  suffix = path.slice(startIdx).join('.');
176
176
 
177
- declarations.push(`${name} = ${ancestorVar}.${suffix}`);
177
+ declarations.push(`${name} = ${ancestorVar}.${suffix}!`);
178
178
  nodes.set(key, name);
179
179
  }
180
180